| 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_NAVIGATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/browser/frame_host/navigator.h" | 10 #include "content/browser/frame_host/navigator.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 class NavigationControllerImpl; | 15 class NavigationControllerImpl; |
| 16 class InterstitialPageImpl; | 16 class InterstitialPageImpl; |
| 17 | 17 |
| 18 // Navigator implementation specific to InterstialPageImpl. It allows only one | 18 // Navigator implementation specific to InterstialPageImpl. It allows only one |
| 19 // navigation to commit, since interstitial pages are not allowed to navigate. | 19 // navigation to commit, since interstitial pages are not allowed to navigate. |
| 20 class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator { | 20 class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator { |
| 21 public: | 21 public: |
| 22 InterstitialPageNavigatorImpl( | 22 InterstitialPageNavigatorImpl( |
| 23 InterstitialPageImpl* interstitial, | 23 InterstitialPageImpl* interstitial, |
| 24 NavigationControllerImpl* navigation_controller); | 24 NavigationControllerImpl* navigation_controller); |
| 25 | 25 |
| 26 NavigatorDelegate* GetDelegate() override; | 26 NavigatorDelegate* GetDelegate() override; |
| 27 NavigationController* GetController() override; | 27 NavigationController* GetController() override; |
| 28 void DidNavigate(RenderFrameHostImpl* render_frame_host, | 28 void DidNavigate( |
| 29 const FrameHostMsg_DidCommitProvisionalLoad_Params& | 29 RenderFrameHostImpl* render_frame_host, |
| 30 input_params) override; | 30 const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params, |
| 31 scoped_refptr<ResourceRequestBody> post_data) override; |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 ~InterstitialPageNavigatorImpl() override {} | 34 ~InterstitialPageNavigatorImpl() override {} |
| 34 | 35 |
| 35 // The InterstitialPage with which this navigator object is associated. | 36 // The InterstitialPage with which this navigator object is associated. |
| 36 // Non owned pointer. | 37 // Non owned pointer. |
| 37 InterstitialPageImpl* interstitial_; | 38 InterstitialPageImpl* interstitial_; |
| 38 | 39 |
| 39 // The NavigationController associated with this navigator. | 40 // The NavigationController associated with this navigator. |
| 40 NavigationControllerImpl* controller_; | 41 NavigationControllerImpl* controller_; |
| 41 | 42 |
| 42 DISALLOW_COPY_AND_ASSIGN(InterstitialPageNavigatorImpl); | 43 DISALLOW_COPY_AND_ASSIGN(InterstitialPageNavigatorImpl); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace content | 46 } // namespace content |
| 46 | 47 |
| 47 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ | 48 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ |
| OLD | NEW |