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 received from the renderer, or | |
26 // generated on the browser side in the case of a browser-initiated navigation | |
27 // with no live renderer. | |
nasko
2014/07/07 11:35:07
Does the "live renderer" detail matter? How would
clamy
2014/07/07 13:36:23
I removed this point of detail.
| |
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; | |
nasko
2014/07/07 11:35:08
Some basic comments on the fields in this struct w
clamy
2014/07/07 13:36:23
Done.
| |
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_ | |
OLD | NEW |