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 <memory> | 10 #include <memory> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // TODO(nasko): This should move to InterstitialPageNavigatorImpl, but in | 92 // TODO(nasko): This should move to InterstitialPageNavigatorImpl, but in |
93 // the meantime make it public, so it can be called directly. | 93 // the meantime make it public, so it can be called directly. |
94 void DidNavigate( | 94 void DidNavigate( |
95 RenderViewHost* render_view_host, | 95 RenderViewHost* render_view_host, |
96 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 96 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); |
97 | 97 |
98 // NavigatorDelegate implementation. | 98 // NavigatorDelegate implementation. |
99 WebContents* OpenURL(const OpenURLParams& params) override; | 99 WebContents* OpenURL(const OpenURLParams& params) override; |
100 const std::string& GetUserAgentOverride() const override; | 100 const std::string& GetUserAgentOverride() const override; |
| 101 bool ShowingInterstitialPage() const override; |
101 | 102 |
102 protected: | 103 protected: |
103 // NotificationObserver method: | 104 // NotificationObserver method: |
104 void Observe(int type, | 105 void Observe(int type, |
105 const NotificationSource& source, | 106 const NotificationSource& source, |
106 const NotificationDetails& details) override; | 107 const NotificationDetails& details) override; |
107 | 108 |
108 // RenderFrameHostDelegate implementation: | 109 // RenderFrameHostDelegate implementation: |
109 bool OnMessageReceived(RenderFrameHostImpl* render_frame_host, | 110 bool OnMessageReceived(RenderFrameHostImpl* render_frame_host, |
110 const IPC::Message& message) override; | 111 const IPC::Message& message) override; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 302 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
302 | 303 |
303 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 304 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
304 | 305 |
305 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 306 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
306 }; | 307 }; |
307 | 308 |
308 } // namespace content | 309 } // namespace content |
309 | 310 |
310 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 311 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |