| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // corresponding to this view host. If this method is not called and the | 52 // corresponding to this view host. If this method is not called and the |
| 53 // process is not shared, then the WebContentsImpl will act as though the | 53 // process is not shared, then the WebContentsImpl will act as though the |
| 54 // renderer is not running (i.e., it will render "sad tab"). This method is | 54 // renderer is not running (i.e., it will render "sad tab"). This method is |
| 55 // automatically called from LoadURL. | 55 // automatically called from LoadURL. |
| 56 // | 56 // |
| 57 // If you are attaching to an already-existing RenderView, you should call | 57 // If you are attaching to an already-existing RenderView, you should call |
| 58 // InitWithExistingID. | 58 // InitWithExistingID. |
| 59 virtual bool CreateRenderViewForRenderManager( | 59 virtual bool CreateRenderViewForRenderManager( |
| 60 content::RenderViewHost* render_view_host, int opener_route_id) = 0; | 60 content::RenderViewHost* render_view_host, int opener_route_id) = 0; |
| 61 virtual void BeforeUnloadFiredFromRenderManager( | 61 virtual void BeforeUnloadFiredFromRenderManager( |
| 62 bool proceed, bool* proceed_to_fire_unload) = 0; | 62 bool proceed, const base::TimeTicks& proceed_time, |
| 63 bool* proceed_to_fire_unload) = 0; |
| 63 virtual void RenderViewGoneFromRenderManager( | 64 virtual void RenderViewGoneFromRenderManager( |
| 64 content::RenderViewHost* render_view_host) = 0; | 65 content::RenderViewHost* render_view_host) = 0; |
| 65 virtual void UpdateRenderViewSizeForRenderManager() = 0; | 66 virtual void UpdateRenderViewSizeForRenderManager() = 0; |
| 66 virtual void NotifySwappedFromRenderManager() = 0; | 67 virtual void NotifySwappedFromRenderManager() = 0; |
| 67 virtual NavigationControllerImpl& GetControllerForRenderManager() = 0; | 68 virtual NavigationControllerImpl& GetControllerForRenderManager() = 0; |
| 68 | 69 |
| 69 // Create swapped out RenderViews in the given SiteInstance for each tab in | 70 // Create swapped out RenderViews in the given SiteInstance for each tab in |
| 70 // the opener chain of this tab, if any. This allows the current tab to | 71 // the opener chain of this tab, if any. This allows the current tab to |
| 71 // make cross-process script calls to its opener(s). Returns the route ID | 72 // make cross-process script calls to its opener(s). Returns the route ID |
| 72 // of the immediate opener, if one exists (otherwise MSG_ROUTING_NONE). | 73 // of the immediate opener, if one exists (otherwise MSG_ROUTING_NONE). |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // The intersitial page currently shown if any, not own by this class | 321 // The intersitial page currently shown if any, not own by this class |
| 321 // (the InterstitialPage is self-owned, it deletes itself when hidden). | 322 // (the InterstitialPage is self-owned, it deletes itself when hidden). |
| 322 InterstitialPageImpl* interstitial_page_; | 323 InterstitialPageImpl* interstitial_page_; |
| 323 | 324 |
| 324 content::NotificationRegistrar registrar_; | 325 content::NotificationRegistrar registrar_; |
| 325 | 326 |
| 326 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager); | 327 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager); |
| 327 }; | 328 }; |
| 328 | 329 |
| 329 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 330 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |