OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/navigation_params.h" | 5 #include "content/common/navigation_params.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
9 #include "content/public/common/browser_side_navigation_policy.h" | 9 #include "content/public/common/browser_side_navigation_policy.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 ui::PageTransition transition, | 40 ui::PageTransition transition, |
41 FrameMsg_Navigate_Type::Value navigation_type, | 41 FrameMsg_Navigate_Type::Value navigation_type, |
42 bool allow_download, | 42 bool allow_download, |
43 bool should_replace_current_entry, | 43 bool should_replace_current_entry, |
44 base::TimeTicks ui_timestamp, | 44 base::TimeTicks ui_timestamp, |
45 FrameMsg_UILoadMetricsReportType::Value report_type, | 45 FrameMsg_UILoadMetricsReportType::Value report_type, |
46 const GURL& base_url_for_data_url, | 46 const GURL& base_url_for_data_url, |
47 const GURL& history_url_for_data_url, | 47 const GURL& history_url_for_data_url, |
48 LoFiState lofi_state, | 48 LoFiState lofi_state, |
49 const base::TimeTicks& navigation_start, | 49 const base::TimeTicks& navigation_start, |
50 std::string method) | 50 std::string method, |
| 51 const scoped_refptr<ResourceRequestBody>& post_data) |
51 : url(url), | 52 : url(url), |
52 referrer(referrer), | 53 referrer(referrer), |
53 transition(transition), | 54 transition(transition), |
54 navigation_type(navigation_type), | 55 navigation_type(navigation_type), |
55 allow_download(allow_download), | 56 allow_download(allow_download), |
56 should_replace_current_entry(should_replace_current_entry), | 57 should_replace_current_entry(should_replace_current_entry), |
57 ui_timestamp(ui_timestamp), | 58 ui_timestamp(ui_timestamp), |
58 report_type(report_type), | 59 report_type(report_type), |
59 base_url_for_data_url(base_url_for_data_url), | 60 base_url_for_data_url(base_url_for_data_url), |
60 history_url_for_data_url(history_url_for_data_url), | 61 history_url_for_data_url(history_url_for_data_url), |
61 lofi_state(lofi_state), | 62 lofi_state(lofi_state), |
62 navigation_start(navigation_start), | 63 navigation_start(navigation_start), |
63 method(method) {} | 64 method(method), |
| 65 post_data(post_data) {} |
64 | 66 |
65 CommonNavigationParams::CommonNavigationParams( | 67 CommonNavigationParams::CommonNavigationParams( |
66 const CommonNavigationParams& other) = default; | 68 const CommonNavigationParams& other) = default; |
67 | 69 |
68 CommonNavigationParams::~CommonNavigationParams() { | 70 CommonNavigationParams::~CommonNavigationParams() { |
69 } | 71 } |
70 | 72 |
71 BeginNavigationParams::BeginNavigationParams() | 73 BeginNavigationParams::BeginNavigationParams() |
72 : load_flags(0), | 74 : load_flags(0), |
73 has_user_gesture(false), | 75 has_user_gesture(false), |
(...skipping 19 matching lines...) Expand all Loading... |
93 : | 95 : |
94 #if defined(OS_ANDROID) | 96 #if defined(OS_ANDROID) |
95 has_user_gesture(false), | 97 has_user_gesture(false), |
96 #endif | 98 #endif |
97 transferred_request_child_id(-1), | 99 transferred_request_child_id(-1), |
98 transferred_request_request_id(-1) { | 100 transferred_request_request_id(-1) { |
99 } | 101 } |
100 | 102 |
101 StartNavigationParams::StartNavigationParams( | 103 StartNavigationParams::StartNavigationParams( |
102 const std::string& extra_headers, | 104 const std::string& extra_headers, |
103 const std::vector<unsigned char>& browser_initiated_post_data, | |
104 #if defined(OS_ANDROID) | 105 #if defined(OS_ANDROID) |
105 bool has_user_gesture, | 106 bool has_user_gesture, |
106 #endif | 107 #endif |
107 int transferred_request_child_id, | 108 int transferred_request_child_id, |
108 int transferred_request_request_id) | 109 int transferred_request_request_id) |
109 : extra_headers(extra_headers), | 110 : extra_headers(extra_headers), |
110 browser_initiated_post_data(browser_initiated_post_data), | |
111 #if defined(OS_ANDROID) | 111 #if defined(OS_ANDROID) |
112 has_user_gesture(has_user_gesture), | 112 has_user_gesture(has_user_gesture), |
113 #endif | 113 #endif |
114 transferred_request_child_id(transferred_request_child_id), | 114 transferred_request_child_id(transferred_request_child_id), |
115 transferred_request_request_id(transferred_request_request_id) { | 115 transferred_request_request_id(transferred_request_request_id) { |
116 } | 116 } |
117 | 117 |
118 StartNavigationParams::StartNavigationParams( | 118 StartNavigationParams::StartNavigationParams( |
119 const StartNavigationParams& other) = default; | 119 const StartNavigationParams& other) = default; |
120 | 120 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const RequestNavigationParams& request_params) | 184 const RequestNavigationParams& request_params) |
185 : common_params(common_params), | 185 : common_params(common_params), |
186 start_params(start_params), | 186 start_params(start_params), |
187 request_params(request_params) { | 187 request_params(request_params) { |
188 } | 188 } |
189 | 189 |
190 NavigationParams::~NavigationParams() { | 190 NavigationParams::~NavigationParams() { |
191 } | 191 } |
192 | 192 |
193 } // namespace content | 193 } // namespace content |
OLD | NEW |