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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // there could be Web UI switching as well. Call this for every commit. | 230 // there could be Web UI switching as well. Call this for every commit. |
231 void CommitPending(); | 231 void CommitPending(); |
232 | 232 |
233 // Helper method to terminate the pending RenderViewHost. | 233 // Helper method to terminate the pending RenderViewHost. |
234 void CancelPending(); | 234 void CancelPending(); |
235 | 235 |
236 RenderViewHost* UpdateRendererStateForNavigate(const NavigationEntry& entry); | 236 RenderViewHost* UpdateRendererStateForNavigate(const NavigationEntry& entry); |
237 | 237 |
238 // Called when a renderer process is starting to close. We should not | 238 // Called when a renderer process is starting to close. We should not |
239 // schedule new navigations in its swapped out RenderViewHosts after this. | 239 // schedule new navigations in its swapped out RenderViewHosts after this. |
240 void RendererProcessClosing(RenderProcessHost* render_process_host); | 240 void RendererProcessClosing(content::RenderProcessHost* render_process_host); |
241 | 241 |
242 // Our delegate, not owned by us. Guaranteed non-NULL. | 242 // Our delegate, not owned by us. Guaranteed non-NULL. |
243 Delegate* delegate_; | 243 Delegate* delegate_; |
244 | 244 |
245 // Whether a navigation requiring different RenderView's is pending. This is | 245 // Whether a navigation requiring different RenderView's is pending. This is |
246 // either cross-site request is (in the new process model), or when required | 246 // either cross-site request is (in the new process model), or when required |
247 // for the view type (like view source versus not). | 247 // for the view type (like view source versus not). |
248 bool cross_navigation_pending_; | 248 bool cross_navigation_pending_; |
249 | 249 |
250 // Implemented by the owner of this class, this delegate is installed into all | 250 // Implemented by the owner of this class, this delegate is installed into all |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 }; | 283 }; |
284 | 284 |
285 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 285 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
286 // host can be NULL when the first RenderViewHost is set. | 286 // host can be NULL when the first RenderViewHost is set. |
287 struct RenderViewHostSwitchedDetails { | 287 struct RenderViewHostSwitchedDetails { |
288 RenderViewHost* old_host; | 288 RenderViewHost* old_host; |
289 RenderViewHost* new_host; | 289 RenderViewHost* new_host; |
290 }; | 290 }; |
291 | 291 |
292 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 292 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
OLD | NEW |