Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: content/browser/frame_host/interstitial_page_navigator_impl.cc

Issue 2682193002: Convert NavigationController unit and browser tests to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "content/browser/frame_host/interstitial_page_navigator_impl.h" 5 #include "content/browser/frame_host/interstitial_page_navigator_impl.h"
6 6
7 #include "content/browser/frame_host/interstitial_page_impl.h" 7 #include "content/browser/frame_host/interstitial_page_impl.h"
8 #include "content/browser/frame_host/navigation_controller_impl.h" 8 #include "content/browser/frame_host/navigation_controller_impl.h"
9 #include "content/browser/frame_host/navigator_delegate.h" 9 #include "content/browser/frame_host/navigator_delegate.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 0, // pending_nav_entry_id 43 0, // pending_nav_entry_id
44 false) // started_in_context_menu 44 false) // started_in_context_menu
45 ); 45 );
46 } 46 }
47 47
48 void InterstitialPageNavigatorImpl::DidNavigate( 48 void InterstitialPageNavigatorImpl::DidNavigate(
49 RenderFrameHostImpl* render_frame_host, 49 RenderFrameHostImpl* render_frame_host,
50 const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params, 50 const FrameHostMsg_DidCommitProvisionalLoad_Params& input_params,
51 std::unique_ptr<NavigationHandleImpl> navigation_handle) { 51 std::unique_ptr<NavigationHandleImpl> navigation_handle) {
52 navigation_handle->DidCommitNavigation(input_params, false, GURL(), 52 navigation_handle->DidCommitNavigation(input_params, false, GURL(),
53 NAVIGATION_TYPE_UNKNOWN,
nasko 2017/02/09 00:29:11 Interstitials navigate to a new page, so it seems
jam 2017/02/09 01:15:03 Done.
53 render_frame_host); 54 render_frame_host);
54 navigation_handle.reset(); 55 navigation_handle.reset();
55 56
56 // TODO(nasko): Move implementation here, but for the time being call out 57 // TODO(nasko): Move implementation here, but for the time being call out
57 // to the interstitial page code. 58 // to the interstitial page code.
58 interstitial_->DidNavigate(render_frame_host->render_view_host(), 59 interstitial_->DidNavigate(render_frame_host->render_view_host(),
59 input_params); 60 input_params);
60 } 61 }
61 62
62 } // namespace content 63 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698