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 CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 6 #define CONTENT_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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SetWebUIPostCommit(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 // Called when a renderer process is starting to close. We should not |
| 148 // schedule new navigations in its swapped out RenderViewHosts after this. |
| 149 void RendererProcessClosing(RenderProcessHost* render_process_host); |
| 150 |
147 // Sets the passed passed interstitial as the currently showing interstitial. | 151 // Sets the passed passed interstitial as the currently showing interstitial. |
148 // |interstitial_page| should be non NULL (use the remove_interstitial_page | 152 // |interstitial_page| should be non NULL (use the remove_interstitial_page |
149 // method to unset the interstitial) and no interstitial page should be set | 153 // method to unset the interstitial) and no interstitial page should be set |
150 // when there is already a non NULL interstitial page set. | 154 // when there is already a non NULL interstitial page set. |
151 void set_interstitial_page(InterstitialPage* interstitial_page) { | 155 void set_interstitial_page(InterstitialPage* interstitial_page) { |
152 DCHECK(!interstitial_page_ && interstitial_page); | 156 DCHECK(!interstitial_page_ && interstitial_page); |
153 interstitial_page_ = interstitial_page; | 157 interstitial_page_ = interstitial_page; |
154 } | 158 } |
155 | 159 |
156 // Unsets the currently showing interstitial. | 160 // Unsets the currently showing interstitial. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 }; | 268 }; |
265 | 269 |
266 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 270 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
267 // host can be NULL when the first RenderViewHost is set. | 271 // host can be NULL when the first RenderViewHost is set. |
268 struct RenderViewHostSwitchedDetails { | 272 struct RenderViewHostSwitchedDetails { |
269 RenderViewHost* old_host; | 273 RenderViewHost* old_host; |
270 RenderViewHost* new_host; | 274 RenderViewHost* new_host; |
271 }; | 275 }; |
272 | 276 |
273 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 277 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
OLD | NEW |