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

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: Addressed Przemek's comments + fixed compilation error 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 "content/public/common/referrer.h"
13 #include "url/gurl.h"
14
15 struct FrameHostMsg_BeginNavigation_Params;
16
17 namespace content {
18
19 // A struct to hold the parameters needed to start a navigation request in
20 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed
21 // to the IO thread by a NavigationRequest object.
22 struct NavigationRequestInfo {
23 NavigationRequestInfo(const FrameHostMsg_BeginNavigation_Params& params);
24
25 // The following parameters should be initialized using a
26 // FrameHostMsg_BeginNavigation_Params.
jam 2014/07/15 00:05:43 did you consider having a FrameHostMsg_BeginNaviga
clamy 2014/07/15 15:32:14 Done.
27
28 // The request method: GET, POST, etc.
29 std::string method;
30
31 // The requested URL.
32 GURL url;
33
34 // The referrer to use.
35 Referrer referrer;
36
37 // Additional HTTP request headers.
38 std::string headers;
39
40 // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING
41 // by default).
42 int load_flags;
43
44 // True if the request was user initiated.
45 bool has_user_gesture;
46 PageTransition transition_type;
47
48 // Whether this navigation should replace the current session history entry on
49 // commit.
50 bool should_replace_current_entry;
51
52 // Whether or not we should allow the URL to download.
53 bool allow_download;
54
55 // ---------------------------------------------------------------------------
56 // The following parameters should be filled in by RenderFrameHostManager
57 // before the navigation request is sent to the ResourceDispatcherHost.
58
59 // Usually the URL of the document in the top-level window, which may be
60 // checked by the third-party cookie blocking policy.
61 GURL first_party_for_cookies;
62 bool is_main_frame;
63 bool parent_is_main_frame;
64
65 // True if the frame is visible.
66 bool is_showing;
67 };
68
69 } // namespace content
70
71 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698