| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 RenderViewHost* render_view_host) = 0; | 47 RenderViewHost* render_view_host) = 0; |
| 48 virtual void RenderViewGoneFromRenderManager( | 48 virtual void RenderViewGoneFromRenderManager( |
| 49 RenderViewHost* render_view_host) = 0; | 49 RenderViewHost* render_view_host) = 0; |
| 50 virtual void UpdateRenderViewSizeForRenderManager() = 0; | 50 virtual void UpdateRenderViewSizeForRenderManager() = 0; |
| 51 virtual void NotifySwappedFromRenderManager() = 0; | 51 virtual void NotifySwappedFromRenderManager() = 0; |
| 52 virtual NavigationController& GetControllerForRenderManager() = 0; | 52 virtual NavigationController& GetControllerForRenderManager() = 0; |
| 53 | 53 |
| 54 // Creates a WebUI object for the given URL if one applies. Ownership of the | 54 // Creates a WebUI object for the given URL if one applies. Ownership of the |
| 55 // returned pointer will be passed to the caller. If no WebUI applies, | 55 // returned pointer will be passed to the caller. If no WebUI applies, |
| 56 // returns NULL. | 56 // returns NULL. |
| 57 virtual WebUI* CreateDOMUIForRenderManager(const GURL& url) = 0; | 57 virtual WebUI* CreateWebUIForRenderManager(const GURL& url) = 0; |
| 58 | 58 |
| 59 // Returns the navigation entry of the current navigation, or NULL if there | 59 // Returns the navigation entry of the current navigation, or NULL if there |
| 60 // is none. | 60 // is none. |
| 61 virtual NavigationEntry* | 61 virtual NavigationEntry* |
| 62 GetLastCommittedNavigationEntryForRenderManager() = 0; | 62 GetLastCommittedNavigationEntryForRenderManager() = 0; |
| 63 | 63 |
| 64 // Returns true if the location bar should be focused by default rather than | 64 // Returns true if the location bar should be focused by default rather than |
| 65 // the page contents. | 65 // the page contents. |
| 66 virtual bool FocusLocationBarByDefault() = 0; | 66 virtual bool FocusLocationBarByDefault() = 0; |
| 67 | 67 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // handler. If we are mid-crosssite navigation, then we should proceed | 132 // handler. If we are mid-crosssite navigation, then we should proceed |
| 133 // with the navigation instead of closing the tab. | 133 // with the navigation instead of closing the tab. |
| 134 bool ShouldCloseTabOnUnresponsiveRenderer(); | 134 bool ShouldCloseTabOnUnresponsiveRenderer(); |
| 135 | 135 |
| 136 // Called when a renderer's main frame navigates. | 136 // Called when a renderer's main frame navigates. |
| 137 void DidNavigateMainFrame(RenderViewHost* render_view_host); | 137 void DidNavigateMainFrame(RenderViewHost* render_view_host); |
| 138 | 138 |
| 139 // Set the WebUI after committing a page load. This is useful for navigations | 139 // Set the WebUI after committing a page load. This is useful for navigations |
| 140 // initiated from a renderer, where we want to give the new renderer WebUI | 140 // initiated from a renderer, where we want to give the new renderer WebUI |
| 141 // privileges from the originating renderer. | 141 // privileges from the originating renderer. |
| 142 void SetDOMUIPostCommit(WebUI* web_ui); | 142 void SetWebUIPostCommit(WebUI* web_ui); |
| 143 | 143 |
| 144 // Called when a provisional load on the given renderer is aborted. | 144 // Called when a provisional load on the given renderer is aborted. |
| 145 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); | 145 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); |
| 146 | 146 |
| 147 // Sets the passed passed interstitial as the currently showing interstitial. | 147 // Sets the passed passed interstitial as the currently showing interstitial. |
| 148 // |interstitial_page| should be non NULL (use the remove_interstitial_page | 148 // |interstitial_page| should be non NULL (use the remove_interstitial_page |
| 149 // method to unset the interstitial) and no interstitial page should be set | 149 // method to unset the interstitial) and no interstitial page should be set |
| 150 // when there is already a non NULL interstitial page set. | 150 // when there is already a non NULL interstitial page set. |
| 151 void set_interstitial_page(InterstitialPage* interstitial_page) { | 151 void set_interstitial_page(InterstitialPage* interstitial_page) { |
| 152 DCHECK(!interstitial_page_ && interstitial_page); | 152 DCHECK(!interstitial_page_ && interstitial_page); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 266 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
| 267 // host can be NULL when the first RenderViewHost is set. | 267 // host can be NULL when the first RenderViewHost is set. |
| 268 struct RenderViewHostSwitchedDetails { | 268 struct RenderViewHostSwitchedDetails { |
| 269 RenderViewHost* old_host; | 269 RenderViewHost* old_host; |
| 270 RenderViewHost* new_host; | 270 RenderViewHost* new_host; |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 273 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |