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

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

Issue 1693563002: PROTOTYPE: PlzNavigate: use a Mojo data pipe to stream navigation data to the renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser sends URLRequest id to the renderer and renderer uses intermediary buffer for data: none he… Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/navigation_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/frame_host/frame_tree_node.h" 9 #include "content/browser/frame_host/frame_tree_node.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Only notify the WebContentsObservers when PlzNavigate is enabled, as 361 // Only notify the WebContentsObservers when PlzNavigate is enabled, as
362 // |render_frame_host_| may be wrong in the case of transfer navigations. 362 // |render_frame_host_| may be wrong in the case of transfer navigations.
363 if (IsBrowserSideNavigationEnabled()) 363 if (IsBrowserSideNavigationEnabled())
364 GetDelegate()->ReadyToCommitNavigation(this); 364 GetDelegate()->ReadyToCommitNavigation(this);
365 } 365 }
366 366
367 void NavigationHandleImpl::DidCommitNavigation( 367 void NavigationHandleImpl::DidCommitNavigation(
368 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, 368 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
369 bool same_page, 369 bool same_page,
370 RenderFrameHostImpl* render_frame_host) { 370 RenderFrameHostImpl* render_frame_host) {
371 LOG(ERROR) << "NavigationHandleImpl::DidCommitNavigation frame_tree_node_id: "
372 << frame_tree_node_->frame_tree_node_id();
371 DCHECK(!render_frame_host_ || render_frame_host_ == render_frame_host); 373 DCHECK(!render_frame_host_ || render_frame_host_ == render_frame_host);
372 DCHECK_EQ(frame_tree_node_, render_frame_host->frame_tree_node()); 374 DCHECK_EQ(frame_tree_node_, render_frame_host->frame_tree_node());
373 CHECK_EQ(url_, params.url); 375 CHECK_EQ(url_, params.url);
374 376
375 is_post_ = params.is_post; 377 is_post_ = params.is_post;
376 has_user_gesture_ = (params.gesture == NavigationGestureUser); 378 has_user_gesture_ = (params.gesture == NavigationGestureUser);
377 transition_ = params.transition; 379 transition_ = params.transition;
378 render_frame_host_ = render_frame_host; 380 render_frame_host_ = render_frame_host;
379 is_same_page_ = same_page; 381 is_same_page_ = same_page;
380 382
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 complete_callback_.Reset(); 486 complete_callback_.Reset();
485 487
486 if (!callback.is_null()) 488 if (!callback.is_null())
487 callback.Run(result); 489 callback.Run(result);
488 490
489 // No code after running the callback, as it might have resulted in our 491 // No code after running the callback, as it might have resulted in our
490 // destruction. 492 // destruction.
491 } 493 }
492 494
493 } // namespace content 495 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698