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

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

Issue 2378393002: Pass the user_gesture context in the IPC message FrameMsg_CommitNavigation to the renderer. (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_request.h" 5 #include "content/browser/frame_host/navigation_request.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 9 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
10 #include "content/browser/frame_host/frame_tree.h" 10 #include "content/browser/frame_host/frame_tree.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 RenderFrameHostImpl* render_frame_host = 511 RenderFrameHostImpl* render_frame_host =
512 navigation_handle_->GetRenderFrameHost(); 512 navigation_handle_->GetRenderFrameHost();
513 DCHECK(render_frame_host == 513 DCHECK(render_frame_host ==
514 frame_tree_node_->render_manager()->current_frame_host() || 514 frame_tree_node_->render_manager()->current_frame_host() ||
515 render_frame_host == 515 render_frame_host ==
516 frame_tree_node_->render_manager()->speculative_frame_host()); 516 frame_tree_node_->render_manager()->speculative_frame_host());
517 517
518 TransferNavigationHandleOwnership(render_frame_host); 518 TransferNavigationHandleOwnership(render_frame_host);
519 render_frame_host->CommitNavigation(response_.get(), std::move(body_), 519 render_frame_host->CommitNavigation(response_.get(), std::move(body_),
520 common_params_, request_params_, 520 common_params_, request_params_,
521 is_view_source_); 521 is_view_source_,
522 begin_params_.has_user_gesture);
522 523
523 frame_tree_node_->ResetNavigationRequest(true); 524 frame_tree_node_->ResetNavigationRequest(true);
524 } 525 }
525 526
526 } // namespace content 527 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | content/common/frame_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698