Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / browser / frame_host / interstitial_page_navigator_impl.cc
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.
4
5 #include "content/browser/frame_host/interstitial_page_navigator_impl.h"
6
7 #include "content/browser/frame_host/interstitial_page_impl.h"
8 #include "content/browser/frame_host/navigator_delegate.h"
9 #include "content/browser/renderer_host/render_view_host_impl.h"
10
11 namespace content {
12
13 InterstitialPageNavigatorImpl::InterstitialPageNavigatorImpl(
14     InterstitialPageImpl* interstitial,
15     NavigationControllerImpl* navigation_controller)
16     : interstitial_(interstitial) {}
17
18 void InterstitialPageNavigatorImpl::DidNavigate(
19     RenderFrameHostImpl* render_frame_host,
20     const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params) {
21   // TODO(nasko): Move implementation here, but for the time being call out
22   // to the interstitial page code.
23   interstitial_->DidNavigate(
24       render_frame_host->render_view_host(), input_params);
25 }
26
27 }  // namespace content