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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 : | 93 : |
94 #if defined(OS_ANDROID) | 94 #if defined(OS_ANDROID) |
95 has_user_gesture(false), | 95 has_user_gesture(false), |
96 #endif | 96 #endif |
97 transferred_request_child_id(-1), | 97 transferred_request_child_id(-1), |
98 transferred_request_request_id(-1) { | 98 transferred_request_request_id(-1) { |
99 } | 99 } |
100 | 100 |
101 StartNavigationParams::StartNavigationParams( | 101 StartNavigationParams::StartNavigationParams( |
102 const std::string& extra_headers, | 102 const std::string& extra_headers, |
103 const std::vector<unsigned char>& browser_initiated_post_data, | 103 const scoped_refptr<ResourceRequestBody>& post_data, |
104 #if defined(OS_ANDROID) | 104 #if defined(OS_ANDROID) |
105 bool has_user_gesture, | 105 bool has_user_gesture, |
106 #endif | 106 #endif |
107 int transferred_request_child_id, | 107 int transferred_request_child_id, |
108 int transferred_request_request_id) | 108 int transferred_request_request_id) |
109 : extra_headers(extra_headers), | 109 : extra_headers(extra_headers), |
110 browser_initiated_post_data(browser_initiated_post_data), | 110 post_data(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 |