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

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

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented the IPC handler Created 6 years, 6 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.h
diff --git a/content/browser/frame_host/navigation_request_info.h b/content/browser/frame_host/navigation_request_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..fed645ab46e4987894eeacb98fe5f408192992ce
--- /dev/null
+++ b/content/browser/frame_host/navigation_request_info.h
@@ -0,0 +1,53 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
+#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "content/public/common/page_transition_types.h"
+#include "url/gurl.h"
+
+struct FrameHostMsg_BeginNavigation_Params;
+
+namespace content {
+
+// A struct to hold the parameters needed to start a navigation request in
+// ResourceDispatcherHost. It is initialized on the UI thread, and then passed
+// to the IO thread by a NavigationRequest object.
+struct NavigationRequestInfo {
+ NavigationRequestInfo(const FrameHostMsg_BeginNavigation_Params& params);
+
+ // The following parameters should be initialized using a
+ // FrameHostMsg_BeginNavigation_Params received from the renderer, or
+ // generated on the browser side in the case of a browser-initiated navigation
+ // with no live renderer.
+ std::string method;
+ GURL url;
+ GURL referrer;
+ int referrer_policy;
+
+ // Additional HTTP request headers.
+ std::string headers;
+
+ int load_flags;
+ bool has_user_gesture;
+ PageTransition transition_type;
+ bool should_replace_current_entry;
+ bool allow_download;
+
+ // ---------------------------------------------------------------------------
+ // The following parameters should be filled in by RenderFrameHostManager
+ // before the navigation request is sent to the ResourceDispatcherHost.
+ GURL first_party_for_cookies;
+ bool is_main_frame;
+ bool parent_is_main_frame;
+ bool is_showing;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698