| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 interstitial_page_ = NULL; | 153 interstitial_page_ = NULL; |
| 154 } | 154 } |
| 155 | 155 |
| 156 // Returns the currently showing interstitial, NULL if no interstitial is | 156 // Returns the currently showing interstitial, NULL if no interstitial is |
| 157 // showing. | 157 // showing. |
| 158 InterstitialPage* interstitial_page() const { | 158 InterstitialPage* interstitial_page() const { |
| 159 return interstitial_page_; | 159 return interstitial_page_; |
| 160 } | 160 } |
| 161 | 161 |
| 162 // RenderViewHostDelegate::RendererManagement implementation. | 162 // RenderViewHostDelegate::RendererManagement implementation. |
| 163 virtual void ShouldClosePage(bool proceed); | 163 virtual void ShouldClosePage(bool for_cross_site_transition, bool proceed); |
| 164 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 164 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
| 165 int new_request_id); | 165 int new_request_id); |
| 166 virtual void OnCrossSiteNavigationCanceled(); | 166 virtual void OnCrossSiteNavigationCanceled(); |
| 167 | 167 |
| 168 private: | 168 private: |
| 169 friend class TestTabContents; | 169 friend class TestTabContents; |
| 170 | 170 |
| 171 // Returns whether this tab should transition to a new renderer for | 171 // Returns whether this tab should transition to a new renderer for |
| 172 // cross-site URLs. Enabled unless we see the --process-per-tab command line | 172 // cross-site URLs. Enabled unless we see the --process-per-tab command line |
| 173 // switch. Can be overridden in unit tests. | 173 // switch. Can be overridden in unit tests. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old | 245 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old |
| 246 // host can be NULL when the first RenderViewHost is set. | 246 // host can be NULL when the first RenderViewHost is set. |
| 247 struct RenderViewHostSwitchedDetails { | 247 struct RenderViewHostSwitchedDetails { |
| 248 RenderViewHost* old_host; | 248 RenderViewHost* old_host; |
| 249 RenderViewHost* new_host; | 249 RenderViewHost* new_host; |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ | 252 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ |
| OLD | NEW |