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

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

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments Created 6 years, 5 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_info.cc
diff --git a/content/browser/frame_host/navigation_request_info.cc b/content/browser/frame_host/navigation_request_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5c37af066a3b7a6bda8f8492e961071d12345035
--- /dev/null
+++ b/content/browser/frame_host/navigation_request_info.cc
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/frame_host/navigation_request_info.h"
+
+#include "content/common/frame_messages.h"
+#include "content/common/resource_request_body.h"
+
+namespace content {
+
+NavigationRequestInfo::NavigationRequestInfo(
+ const FrameHostMsg_BeginNavigation_Params& params)
+ : method(params.method),
+ url(params.url),
+ referrer(params.referrer),
+ referrer_policy(params.referrer_policy),
+ headers(params.headers),
+ load_flags(params.load_flags),
+ has_user_gesture(params.has_user_gesture),
+ transition_type(params.transition_type),
+ should_replace_current_entry(params.should_replace_current_entry),
+ allow_download(params.allow_download),
+ is_main_frame(true),
+ parent_is_main_frame(false),
+ is_showing(true) {
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698