Chromium Code Reviews| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 InterstitialPageDelegate* delegate); | 56 InterstitialPageDelegate* delegate); |
| 57 ~InterstitialPageImpl() override; | 57 ~InterstitialPageImpl() override; |
| 58 | 58 |
| 59 // InterstitialPage implementation: | 59 // InterstitialPage implementation: |
| 60 void Show() override; | 60 void Show() override; |
| 61 void Hide() override; | 61 void Hide() override; |
| 62 void DontProceed() override; | 62 void DontProceed() override; |
| 63 void Proceed() override; | 63 void Proceed() override; |
| 64 RenderFrameHost* GetMainFrame() const override; | 64 RenderFrameHost* GetMainFrame() const override; |
| 65 InterstitialPageDelegate* GetDelegateForTesting() override; | 65 InterstitialPageDelegate* GetDelegateForTesting() override; |
| 66 WebContents* GetAsWebContents() override; | |
|
Charlie Reis
2015/04/27 23:39:26
This is not defined in InterstitialPage, so it doe
| |
| 66 void DontCreateViewForTesting() override; | 67 void DontCreateViewForTesting() override; |
| 67 void SetSize(const gfx::Size& size) override; | 68 void SetSize(const gfx::Size& size) override; |
| 68 void Focus() override; | 69 void Focus() override; |
| 69 | 70 |
| 70 // Allows the user to navigate away by disabling the interstitial, canceling | 71 // Allows the user to navigate away by disabling the interstitial, canceling |
| 71 // the pending request, and unblocking the hidden renderer. The interstitial | 72 // the pending request, and unblocking the hidden renderer. The interstitial |
| 72 // will stay visible until the navigation completes. | 73 // will stay visible until the navigation completes. |
| 73 void CancelForNavigation(); | 74 void CancelForNavigation(); |
| 74 | 75 |
| 75 // Focus the first (last if reverse is true) element in the interstitial page. | 76 // Focus the first (last if reverse is true) element in the interstitial page. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 288 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 288 | 289 |
| 289 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 290 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 292 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace content | 295 } // namespace content |
| 295 | 296 |
| 296 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 297 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |