| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // You must call Init() before using this class. | 109 // You must call Init() before using this class. |
| 110 RenderViewHostManager( | 110 RenderViewHostManager( |
| 111 RenderViewHostDelegate* render_view_delegate, | 111 RenderViewHostDelegate* render_view_delegate, |
| 112 RenderWidgetHostDelegate* render_widget_delegate, | 112 RenderWidgetHostDelegate* render_widget_delegate, |
| 113 Delegate* delegate); | 113 Delegate* delegate); |
| 114 virtual ~RenderViewHostManager(); | 114 virtual ~RenderViewHostManager(); |
| 115 | 115 |
| 116 // For arguments, see WebContentsImpl constructor. | 116 // For arguments, see WebContentsImpl constructor. |
| 117 void Init(BrowserContext* browser_context, | 117 void Init(BrowserContext* browser_context, |
| 118 SiteInstance* site_instance, | 118 SiteInstance* site_instance, |
| 119 int routing_id); | 119 int routing_id, |
| 120 int main_frame_routing_id); |
| 120 | 121 |
| 121 // Returns the currently active RenderViewHost. | 122 // Returns the currently active RenderViewHost. |
| 122 // | 123 // |
| 123 // This will be non-NULL between Init() and Shutdown(). You may want to NULL | 124 // This will be non-NULL between Init() and Shutdown(). You may want to NULL |
| 124 // check it in many cases, however. Windows can send us messages during the | 125 // check it in many cases, however. Windows can send us messages during the |
| 125 // destruction process after it has been shut down. | 126 // destruction process after it has been shut down. |
| 126 RenderViewHostImpl* current_host() const; | 127 RenderViewHostImpl* current_host() const; |
| 127 | 128 |
| 128 // Returns the view associated with the current RenderViewHost, or NULL if | 129 // Returns the view associated with the current RenderViewHost, or NULL if |
| 129 // there is no current one. | 130 // there is no current one. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 InterstitialPageImpl* interstitial_page_; | 320 InterstitialPageImpl* interstitial_page_; |
| 320 | 321 |
| 321 NotificationRegistrar registrar_; | 322 NotificationRegistrar registrar_; |
| 322 | 323 |
| 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager); | 324 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager); |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 } // namespace content | 327 } // namespace content |
| 327 | 328 |
| 328 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 329 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |