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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "content/public/common/page_transition_types.h"
12 #include "url/gurl.h"
13
14 struct FrameHostMsg_BeginNavigation_Params;
15
16 namespace content {
17
18 // A struct to hold the parameters needed to start a navigation request in
19 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed
20 // to the IO thread by a NavigationRequest object.
21 struct NavigationRequestInfo {
22 NavigationRequestInfo(const FrameHostMsg_BeginNavigation_Params& params);
23
24 // The following parameters should be initialized using a
25 // FrameHostMsg_BeginNavigation_Params received from the renderer, or
26 // generated on the browser side in the case of a browser-initiated navigation
27 // with no live renderer.
28 std::string method;
29 GURL url;
30 GURL referrer;
31 int referrer_policy;
32
33 // Additional HTTP request headers.
34 std::string headers;
35
36 int load_flags;
37 bool has_user_gesture;
38 PageTransition transition_type;
39 bool should_replace_current_entry;
40 bool allow_download;
41
42 // ---------------------------------------------------------------------------
43 // The following parameters should be filled in by RenderFrameHostManager
44 // before the navigation request is sent to the ResourceDispatcherHost.
45 GURL first_party_for_cookies;
46 bool is_main_frame;
47 bool parent_is_main_frame;
48 bool is_showing;
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698