OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 FrameTree frame_tree_; | 264 FrameTree frame_tree_; |
265 | 265 |
266 // The IDs for the Render[View|Process]Host hidden by this interstitial. | 266 // The IDs for the Render[View|Process]Host hidden by this interstitial. |
267 int original_child_id_; | 267 int original_child_id_; |
268 int original_rvh_id_; | 268 int original_rvh_id_; |
269 | 269 |
270 // Whether or not we should change the title of the contents when hidden (to | 270 // Whether or not we should change the title of the contents when hidden (to |
271 // revert it to its original value). | 271 // revert it to its original value). |
272 bool should_revert_web_contents_title_; | 272 bool should_revert_web_contents_title_; |
273 | 273 |
274 // Whether or not the contents was loading resources when the interstitial was | |
275 // shown. We restore this state if the user proceeds from the interstitial. | |
276 bool web_contents_was_loading_; | |
277 | |
278 // Whether the ResourceDispatcherHost has been notified to cancel/resume the | 274 // Whether the ResourceDispatcherHost has been notified to cancel/resume the |
279 // resource requests blocked for the RenderViewHost. | 275 // resource requests blocked for the RenderViewHost. |
280 bool resource_dispatcher_host_notified_; | 276 bool resource_dispatcher_host_notified_; |
281 | 277 |
282 // The original title of the contents that should be reverted to when the | 278 // The original title of the contents that should be reverted to when the |
283 // interstitial is hidden. | 279 // interstitial is hidden. |
284 base::string16 original_web_contents_title_; | 280 base::string16 original_web_contents_title_; |
285 | 281 |
286 // Our RenderViewHostViewDelegate, necessary for accelerators to work. | 282 // Our RenderViewHostViewDelegate, necessary for accelerators to work. |
287 scoped_ptr<InterstitialPageRVHDelegateView> rvh_delegate_view_; | 283 scoped_ptr<InterstitialPageRVHDelegateView> rvh_delegate_view_; |
288 | 284 |
289 // Settings passed to the renderer. | 285 // Settings passed to the renderer. |
290 mutable RendererPreferences renderer_preferences_; | 286 mutable RendererPreferences renderer_preferences_; |
291 | 287 |
292 bool create_view_; | 288 bool create_view_; |
293 | 289 |
294 scoped_ptr<InterstitialPageDelegate> delegate_; | 290 scoped_ptr<InterstitialPageDelegate> delegate_; |
295 | 291 |
296 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 292 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
297 | 293 |
298 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 294 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
299 | 295 |
300 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 296 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
301 }; | 297 }; |
302 | 298 |
303 } // namespace content | 299 } // namespace content |
304 | 300 |
305 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 301 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |