| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 return interstitial_page_; | 167 return interstitial_page_; |
| 168 } | 168 } |
| 169 | 169 |
| 170 // RenderViewHostDelegate::RendererManagement implementation. | 170 // RenderViewHostDelegate::RendererManagement implementation. |
| 171 virtual void ShouldClosePage(bool for_cross_site_transition, bool proceed); | 171 virtual void ShouldClosePage(bool for_cross_site_transition, bool proceed); |
| 172 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 172 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
| 173 int new_request_id); | 173 int new_request_id); |
| 174 virtual void OnCrossSiteNavigationCanceled(); | 174 virtual void OnCrossSiteNavigationCanceled(); |
| 175 | 175 |
| 176 // NotificationObserver implementation. | 176 // NotificationObserver implementation. |
| 177 virtual void Observe(NotificationType type, | 177 virtual void Observe(int type, |
| 178 const NotificationSource& source, | 178 const NotificationSource& source, |
| 179 const NotificationDetails& details); | 179 const NotificationDetails& details); |
| 180 | 180 |
| 181 // Called when a RenderViewHost is about to be deleted. | 181 // Called when a RenderViewHost is about to be deleted. |
| 182 void RenderViewDeleted(RenderViewHost* rvh); | 182 void RenderViewDeleted(RenderViewHost* rvh); |
| 183 | 183 |
| 184 // Allows a caller to swap in a provided RenderViewHost to replace the | 184 // Allows a caller to swap in a provided RenderViewHost to replace the |
| 185 // current RenderViewHost. The current RVH will be shutdown and ultimately | 185 // current RenderViewHost. The current RVH will be shutdown and ultimately |
| 186 // deleted. | 186 // deleted. |
| 187 void SwapInRenderViewHost(RenderViewHost* rvh); | 187 void SwapInRenderViewHost(RenderViewHost* rvh); |
| (...skipping 95 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 |