| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "content/public/browser/interstitial_page.h" | 12 #include "content/public/browser/interstitial_page.h" |
| 13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 #include "content/public/browser/render_view_host_delegate.h" | 15 #include "content/public/browser/render_view_host_delegate.h" |
| 16 #include "content/public/common/renderer_preferences.h" | 16 #include "content/public/common/renderer_preferences.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 | 18 |
| 19 class RenderViewHostImpl; |
| 19 class TabContents; | 20 class TabContents; |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 class NavigationEntry; | 23 class NavigationEntry; |
| 23 class WebContentsView; | 24 class WebContentsView; |
| 24 } | 25 } |
| 25 | 26 |
| 26 enum ResourceRequestAction { | 27 enum ResourceRequestAction { |
| 27 BLOCK, | 28 BLOCK, |
| 28 RESUME, | 29 RESUME, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // The default is false. | 153 // The default is false. |
| 153 bool reload_on_dont_proceed_; | 154 bool reload_on_dont_proceed_; |
| 154 | 155 |
| 155 // Whether this interstitial is enabled. See Disable() for more info. | 156 // Whether this interstitial is enabled. See Disable() for more info. |
| 156 bool enabled_; | 157 bool enabled_; |
| 157 | 158 |
| 158 // Whether the Proceed or DontProceed methods have been called yet. | 159 // Whether the Proceed or DontProceed methods have been called yet. |
| 159 ActionState action_taken_; | 160 ActionState action_taken_; |
| 160 | 161 |
| 161 // The RenderViewHost displaying the interstitial contents. | 162 // The RenderViewHost displaying the interstitial contents. |
| 162 RenderViewHost* render_view_host_; | 163 RenderViewHostImpl* render_view_host_; |
| 163 | 164 |
| 164 // The IDs for the Render[View|Process]Host hidden by this interstitial. | 165 // The IDs for the Render[View|Process]Host hidden by this interstitial. |
| 165 int original_child_id_; | 166 int original_child_id_; |
| 166 int original_rvh_id_; | 167 int original_rvh_id_; |
| 167 | 168 |
| 168 // Whether or not we should change the title of the tab when hidden (to revert | 169 // Whether or not we should change the title of the tab when hidden (to revert |
| 169 // it to its original value). | 170 // it to its original value). |
| 170 bool should_revert_tab_title_; | 171 bool should_revert_tab_title_; |
| 171 | 172 |
| 172 // Whether or not the tab was loading resources when the interstitial was | 173 // Whether or not the tab was loading resources when the interstitial was |
| (...skipping 15 matching lines...) Expand all Loading... |
| 188 mutable content::RendererPreferences renderer_preferences_; | 189 mutable content::RendererPreferences renderer_preferences_; |
| 189 | 190 |
| 190 bool create_view_; | 191 bool create_view_; |
| 191 | 192 |
| 192 scoped_ptr<content::InterstitialPageDelegate> delegate_; | 193 scoped_ptr<content::InterstitialPageDelegate> delegate_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 195 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 198 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |