OLD | NEW |
---|---|
(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. | |
26 | |
27 // The request method: GET, POST, etc. | |
28 std::string method; | |
29 | |
30 // The requested URL. | |
31 GURL url; | |
32 | |
33 // The referrer to use (may be empty). | |
34 GURL referrer; | |
35 | |
36 // The referrer policy to use (cast from a blink:WebReferrerPolicy). | |
37 int referrer_policy; | |
ppi
2014/07/07 14:10:05
In content we have https://code.google.com/p/chrom
clamy
2014/07/08 14:21:39
Done.
| |
38 | |
39 // Additional HTTP request headers. | |
40 std::string headers; | |
41 | |
42 // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING | |
43 // by default). | |
44 int load_flags; | |
45 | |
46 // True if the request was user initiated. | |
47 bool has_user_gesture; | |
48 PageTransition transition_type; | |
49 | |
50 // Whether this navigation should replace the current session history entry on | |
51 // commit. | |
52 bool should_replace_current_entry; | |
53 | |
54 // Whether or not we should allow the URL to download. | |
55 bool allow_download; | |
56 | |
57 // --------------------------------------------------------------------------- | |
58 // The following parameters should be filled in by RenderFrameHostManager | |
59 // before the navigation request is sent to the ResourceDispatcherHost. | |
60 | |
61 // Usually the URL of the document in the top-level window, which may be | |
62 // checked by the third-party cookie blocking policy. | |
63 GURL first_party_for_cookies; | |
64 bool is_main_frame; | |
65 bool parent_is_main_frame; | |
66 | |
67 // True if the frame is visible. | |
68 bool is_showing; | |
69 }; | |
70 | |
71 } // namespace content | |
72 | |
73 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | |
OLD | NEW |