| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bool new_navigation, | 57 bool new_navigation, |
| 58 const GURL& url, | 58 const GURL& url, |
| 59 InterstitialPageDelegate* delegate); | 59 InterstitialPageDelegate* delegate); |
| 60 ~InterstitialPageImpl() override; | 60 ~InterstitialPageImpl() override; |
| 61 | 61 |
| 62 // InterstitialPage implementation: | 62 // InterstitialPage implementation: |
| 63 void Show() override; | 63 void Show() override; |
| 64 void Hide() override; | 64 void Hide() override; |
| 65 void DontProceed() override; | 65 void DontProceed() override; |
| 66 void Proceed() override; | 66 void Proceed() override; |
| 67 WebContents* GetWebContents() const override; |
| 67 RenderFrameHost* GetMainFrame() const override; | 68 RenderFrameHost* GetMainFrame() const override; |
| 68 InterstitialPageDelegate* GetDelegateForTesting() override; | 69 InterstitialPageDelegate* GetDelegateForTesting() override; |
| 69 void DontCreateViewForTesting() override; | 70 void DontCreateViewForTesting() override; |
| 70 void SetSize(const gfx::Size& size) override; | 71 void SetSize(const gfx::Size& size) override; |
| 71 void Focus() override; | 72 void Focus() override; |
| 72 | 73 |
| 73 // Allows the user to navigate away by disabling the interstitial, canceling | 74 // Allows the user to navigate away by disabling the interstitial, canceling |
| 74 // the pending request, and unblocking the hidden renderer. The interstitial | 75 // the pending request, and unblocking the hidden renderer. The interstitial |
| 75 // will stay visible until the navigation completes. | 76 // will stay visible until the navigation completes. |
| 76 void CancelForNavigation(); | 77 void CancelForNavigation(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 100 const NotificationDetails& details) override; | 101 const NotificationDetails& details) override; |
| 101 | 102 |
| 102 // RenderFrameHostDelegate implementation: | 103 // RenderFrameHostDelegate implementation: |
| 103 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 104 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 104 const IPC::Message& message) override; | 105 const IPC::Message& message) override; |
| 105 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; | 106 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
| 106 void UpdateTitle(RenderFrameHost* render_frame_host, | 107 void UpdateTitle(RenderFrameHost* render_frame_host, |
| 107 int32_t page_id, | 108 int32_t page_id, |
| 108 const base::string16& title, | 109 const base::string16& title, |
| 109 base::i18n::TextDirection title_direction) override; | 110 base::i18n::TextDirection title_direction) override; |
| 111 InterstitialPage* GetAsInterstitialPage() override; |
| 110 AccessibilityMode GetAccessibilityMode() const override; | 112 AccessibilityMode GetAccessibilityMode() const override; |
| 111 void Cut() override; | 113 void Cut() override; |
| 112 void Copy() override; | 114 void Copy() override; |
| 113 void Paste() override; | 115 void Paste() override; |
| 114 void SelectAll() override; | 116 void SelectAll() override; |
| 115 | 117 |
| 116 // RenderViewHostDelegate implementation: | 118 // RenderViewHostDelegate implementation: |
| 117 RenderViewHostDelegateView* GetDelegateView() override; | 119 RenderViewHostDelegateView* GetDelegateView() override; |
| 118 bool OnMessageReceived(RenderViewHost* render_view_host, | 120 bool OnMessageReceived(RenderViewHost* render_view_host, |
| 119 const IPC::Message& message) override; | 121 const IPC::Message& message) override; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 296 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 295 | 297 |
| 296 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 298 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
| 297 | 299 |
| 298 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 300 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 299 }; | 301 }; |
| 300 | 302 |
| 301 } // namespace content | 303 } // namespace content |
| 302 | 304 |
| 303 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 305 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |