| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool pause_throbber() const { return pause_throbber_; } | 90 bool pause_throbber() const { return pause_throbber_; } |
| 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 | 101 |
| 101 protected: | 102 protected: |
| 102 // NotificationObserver method: | 103 // NotificationObserver method: |
| 103 void Observe(int type, | 104 void Observe(int type, |
| 104 const NotificationSource& source, | 105 const NotificationSource& source, |
| 105 const NotificationDetails& details) override; | 106 const NotificationDetails& details) override; |
| 106 | 107 |
| 107 // RenderFrameHostDelegate implementation: | 108 // RenderFrameHostDelegate implementation: |
| 108 bool OnMessageReceived(RenderFrameHostImpl* render_frame_host, | 109 bool OnMessageReceived(RenderFrameHostImpl* render_frame_host, |
| 109 const IPC::Message& message) override; | 110 const IPC::Message& message) override; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 300 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 300 | 301 |
| 301 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 302 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
| 302 | 303 |
| 303 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 304 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 304 }; | 305 }; |
| 305 | 306 |
| 306 } // namespace content | 307 } // namespace content |
| 307 | 308 |
| 308 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 309 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |