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
3 // found in the LICENSE file.
5 #include "content/browser/frame_host/interstitial_page_navigator_impl.h"
7 #include "content/browser/frame_host/interstitial_page_impl.h"
8 #include "content/browser/frame_host/navigation_controller_impl.h"
9 #include "content/browser/frame_host/navigator_delegate.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h"
14 InterstitialPageNavigatorImpl::InterstitialPageNavigatorImpl(
15 InterstitialPageImpl
* interstitial
,
16 NavigationControllerImpl
* navigation_controller
)
17 : interstitial_(interstitial
),
18 controller_(navigation_controller
) {}
20 NavigatorDelegate
* InterstitialPageNavigatorImpl::GetDelegate() {
24 NavigationController
* InterstitialPageNavigatorImpl::GetController() {
28 void InterstitialPageNavigatorImpl::DidNavigate(
29 RenderFrameHostImpl
* render_frame_host
,
30 const FrameHostMsg_DidCommitProvisionalLoad_Params
& input_params
) {
31 // TODO(nasko): Move implementation here, but for the time being call out
32 // to the interstitial page code.
33 interstitial_
->DidNavigate(
34 render_frame_host
->render_view_host(), input_params
);
37 } // namespace content