| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 interstitial_page_ = NULL; | 165 interstitial_page_ = NULL; |
| 166 } | 166 } |
| 167 | 167 |
| 168 // Returns the currently showing interstitial, NULL if no interstitial is | 168 // Returns the currently showing interstitial, NULL if no interstitial is |
| 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, bool proceed); | 175 virtual void ShouldClosePage(bool for_cross_site_transition, |
| 176 bool proceed) OVERRIDE; |
| 176 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 177 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
| 177 int new_request_id); | 178 int new_request_id) OVERRIDE; |
| 178 virtual void OnCrossSiteNavigationCanceled(); | 179 virtual void OnCrossSiteNavigationCanceled() OVERRIDE; |
| 179 | 180 |
| 180 // content::NotificationObserver implementation. | 181 // content::NotificationObserver implementation. |
| 181 virtual void Observe(int type, | 182 virtual void Observe(int type, |
| 182 const content::NotificationSource& source, | 183 const content::NotificationSource& source, |
| 183 const content::NotificationDetails& details); | 184 const content::NotificationDetails& details) OVERRIDE; |
| 184 | 185 |
| 185 // Called when a RenderViewHost is about to be deleted. | 186 // Called when a RenderViewHost is about to be deleted. |
| 186 void RenderViewDeleted(RenderViewHost* rvh); | 187 void RenderViewDeleted(RenderViewHost* rvh); |
| 187 | 188 |
| 188 // Returns whether the given RenderViewHost is on the list of swapped out | 189 // Returns whether the given RenderViewHost is on the list of swapped out |
| 189 // RenderViewHosts. | 190 // RenderViewHosts. |
| 190 bool IsSwappedOut(RenderViewHost* rvh); | 191 bool IsSwappedOut(RenderViewHost* rvh); |
| 191 | 192 |
| 192 private: | 193 private: |
| 193 friend class TestTabContents; | 194 friend class TestTabContents; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 }; | 283 }; |
| 283 | 284 |
| 284 // 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 |
| 285 // host can be NULL when the first RenderViewHost is set. | 286 // host can be NULL when the first RenderViewHost is set. |
| 286 struct RenderViewHostSwitchedDetails { | 287 struct RenderViewHostSwitchedDetails { |
| 287 RenderViewHost* old_host; | 288 RenderViewHost* old_host; |
| 288 RenderViewHost* new_host; | 289 RenderViewHost* new_host; |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 292 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |