| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "chrome/browser/renderer_host/render_view_host.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Creates a DOMUI object for the given URL if one applies. Ownership of the | 53 // Creates a DOMUI object for the given URL if one applies. Ownership of the |
| 54 // returned pointer will be passed to the caller. If no DOMUI applies, | 54 // returned pointer will be passed to the caller. If no DOMUI applies, |
| 55 // returns NULL. | 55 // returns NULL. |
| 56 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url) = 0; | 56 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url) = 0; |
| 57 | 57 |
| 58 // Returns the navigation entry of the current navigation, or NULL if there | 58 // Returns the navigation entry of the current navigation, or NULL if there |
| 59 // is none. | 59 // is none. |
| 60 virtual NavigationEntry* | 60 virtual NavigationEntry* |
| 61 GetLastCommittedNavigationEntryForRenderManager() = 0; | 61 GetLastCommittedNavigationEntryForRenderManager() = 0; |
| 62 | |
| 63 protected: | |
| 64 ~Delegate() {} | |
| 65 }; | 62 }; |
| 66 | 63 |
| 67 // Both delegate pointers must be non-NULL and are not owned by this class. | 64 // Both delegate pointers must be non-NULL and are not owned by this class. |
| 68 // They must outlive this class. The RenderViewHostDelegate is what will be | 65 // They must outlive this class. The RenderViewHostDelegate is what will be |
| 69 // installed into all RenderViewHosts that are created. | 66 // installed into all RenderViewHosts that are created. |
| 70 // | 67 // |
| 71 // You must call Init() before using this class. | 68 // You must call Init() before using this class. |
| 72 RenderViewHostManager(RenderViewHostDelegate* render_view_delegate, | 69 RenderViewHostManager(RenderViewHostDelegate* render_view_delegate, |
| 73 Delegate* delegate); | 70 Delegate* delegate); |
| 74 ~RenderViewHostManager(); | 71 ~RenderViewHostManager(); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 }; | 243 }; |
| 247 | 244 |
| 248 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 245 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
| 249 // host can be NULL when the first RenderViewHost is set. | 246 // host can be NULL when the first RenderViewHost is set. |
| 250 struct RenderViewHostSwitchedDetails { | 247 struct RenderViewHostSwitchedDetails { |
| 251 RenderViewHost* old_host; | 248 RenderViewHost* old_host; |
| 252 RenderViewHost* new_host; | 249 RenderViewHost* new_host; |
| 253 }; | 250 }; |
| 254 | 251 |
| 255 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 252 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |