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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Addressed comments + changes to NavigationHandleImpl following 2364943002 Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 5aa5946400e6cef95346f984a22e71c028515a7a..0a80c7a18a3e74d52d3923890e45b2d1f54d1664 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -23,6 +23,7 @@
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_data.h"
+#include "content/public/browser/navigation_ui_data.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/stream_handle.h"
#include "content/public/common/content_client.h"
@@ -482,6 +483,10 @@ void NavigationRequest::OnStartChecksComplete(
? false
: frame_tree_node_->parent()->IsMainFrame();
+ std::unique_ptr<NavigationUIData> navigation_ui_data;
+ if (navigation_handle_->navigation_ui_data())
+ navigation_ui_data = navigation_handle_->navigation_ui_data()->Clone();
+
loader_ = NavigationURLLoader::Create(
frame_tree_node_->navigator()->GetController()->GetBrowserContext(),
base::MakeUnique<NavigationRequestInfo>(
@@ -489,6 +494,7 @@ void NavigationRequest::OnStartChecksComplete(
frame_tree_node_->current_origin(), frame_tree_node_->IsMainFrame(),
parent_is_main_frame, IsSecureFrame(frame_tree_node_->parent()),
frame_tree_node_->frame_tree_node_id()),
+ std::move(navigation_ui_data),
navigation_handle_->service_worker_handle(), this);
}

Powered by Google App Engine
This is Rietveld 408576698