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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // showing. | 169 // showing. |
170 InterstitialPage* interstitial_page() const { | 170 InterstitialPage* interstitial_page() const { |
171 return interstitial_page_; | 171 return interstitial_page_; |
172 } | 172 } |
173 | 173 |
174 // RenderViewHostDelegate::RendererManagement implementation. | 174 // RenderViewHostDelegate::RendererManagement implementation. |
175 virtual void ShouldClosePage(bool for_cross_site_transition, | 175 virtual void ShouldClosePage(bool for_cross_site_transition, |
176 bool proceed) OVERRIDE; | 176 bool proceed) OVERRIDE; |
177 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 177 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
178 int new_request_id) OVERRIDE; | 178 int new_request_id) OVERRIDE; |
179 virtual void OnCrossSiteNavigationCanceled() OVERRIDE; | |
180 | 179 |
181 // content::NotificationObserver implementation. | 180 // content::NotificationObserver implementation. |
182 virtual void Observe(int type, | 181 virtual void Observe(int type, |
183 const content::NotificationSource& source, | 182 const content::NotificationSource& source, |
184 const content::NotificationDetails& details) OVERRIDE; | 183 const content::NotificationDetails& details) OVERRIDE; |
185 | 184 |
186 // Called when a RenderViewHost is about to be deleted. | 185 // Called when a RenderViewHost is about to be deleted. |
187 void RenderViewDeleted(RenderViewHost* rvh); | 186 void RenderViewDeleted(RenderViewHost* rvh); |
188 | 187 |
189 // Returns whether the given RenderViewHost is on the list of swapped out | 188 // Returns whether the given RenderViewHost is on the list of swapped out |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 }; | 282 }; |
284 | 283 |
285 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 284 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
286 // host can be NULL when the first RenderViewHost is set. | 285 // host can be NULL when the first RenderViewHost is set. |
287 struct RenderViewHostSwitchedDetails { | 286 struct RenderViewHostSwitchedDetails { |
288 RenderViewHost* old_host; | 287 RenderViewHost* old_host; |
289 RenderViewHost* new_host; | 288 RenderViewHost* new_host; |
290 }; | 289 }; |
291 | 290 |
292 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 291 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
OLD | NEW |