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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void SetIsLoading(bool is_loading); | 120 void SetIsLoading(bool is_loading); |
121 | 121 |
122 // Whether to close the tab or not when there is a hang during an unload | 122 // Whether to close the tab or not when there is a hang during an unload |
123 // handler. If we are mid-crosssite navigation, then we should proceed | 123 // handler. If we are mid-crosssite navigation, then we should proceed |
124 // with the navigation instead of closing the tab. | 124 // with the navigation instead of closing the tab. |
125 bool ShouldCloseTabOnUnresponsiveRenderer(); | 125 bool ShouldCloseTabOnUnresponsiveRenderer(); |
126 | 126 |
127 // Called when a renderer's main frame navigates. | 127 // Called when a renderer's main frame navigates. |
128 void DidNavigateMainFrame(RenderViewHost* render_view_host); | 128 void DidNavigateMainFrame(RenderViewHost* render_view_host); |
129 | 129 |
| 130 // Set the DOMUI after committing a page load. This is useful for navigations |
| 131 // initiated from a renderer, where we want to give the new renderer DOMUI |
| 132 // privileges from the originating renderer. |
| 133 void SetDOMUIPostCommit(DOMUI* dom_ui); |
| 134 |
130 // Called when a provisional load on the given renderer is aborted. | 135 // Called when a provisional load on the given renderer is aborted. |
131 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); | 136 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); |
132 | 137 |
133 // Forwards the message to the RenderViewHost, which is the original one. | 138 // Forwards the message to the RenderViewHost, which is the original one. |
134 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, | 139 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, |
135 bool success, | 140 bool success, |
136 const std::wstring& prompt); | 141 const std::wstring& prompt); |
137 | 142 |
138 // Forwards this message to the RenderViewHost. | 143 // Forwards this message to the RenderViewHost. |
139 void OnJavaScriptMessageBoxWindowDestroyed(); | 144 void OnJavaScriptMessageBoxWindowDestroyed(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 }; | 248 }; |
244 | 249 |
245 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 250 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
246 // host can be NULL when the first RenderViewHost is set. | 251 // host can be NULL when the first RenderViewHost is set. |
247 struct RenderViewHostSwitchedDetails { | 252 struct RenderViewHostSwitchedDetails { |
248 RenderViewHost* old_host; | 253 RenderViewHost* old_host; |
249 RenderViewHost* new_host; | 254 RenderViewHost* new_host; |
250 }; | 255 }; |
251 | 256 |
252 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 257 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
OLD | NEW |