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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
10 #include "content/public/common/browser_side_navigation_policy.h" | 10 #include "content/public/common/browser_side_navigation_policy.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 : load_flags(0), | 83 : load_flags(0), |
84 has_user_gesture(false), | 84 has_user_gesture(false), |
85 skip_service_worker(false), | 85 skip_service_worker(false), |
86 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} | 86 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} |
87 | 87 |
88 BeginNavigationParams::BeginNavigationParams( | 88 BeginNavigationParams::BeginNavigationParams( |
89 std::string headers, | 89 std::string headers, |
90 int load_flags, | 90 int load_flags, |
91 bool has_user_gesture, | 91 bool has_user_gesture, |
92 bool skip_service_worker, | 92 bool skip_service_worker, |
93 RequestContextType request_context_type) | 93 RequestContextType request_context_type, |
| 94 const url::Origin& initiator) |
94 : headers(headers), | 95 : headers(headers), |
95 load_flags(load_flags), | 96 load_flags(load_flags), |
96 has_user_gesture(has_user_gesture), | 97 has_user_gesture(has_user_gesture), |
97 skip_service_worker(skip_service_worker), | 98 skip_service_worker(skip_service_worker), |
98 request_context_type(request_context_type) {} | 99 request_context_type(request_context_type), |
| 100 initiator(initiator) {} |
99 | 101 |
100 BeginNavigationParams::BeginNavigationParams( | 102 BeginNavigationParams::BeginNavigationParams( |
101 const BeginNavigationParams& other) = default; | 103 const BeginNavigationParams& other) = default; |
102 | 104 |
103 StartNavigationParams::StartNavigationParams() | 105 StartNavigationParams::StartNavigationParams() |
104 : | 106 : |
105 #if defined(OS_ANDROID) | 107 #if defined(OS_ANDROID) |
106 has_user_gesture(false), | 108 has_user_gesture(false), |
107 #endif | 109 #endif |
108 transferred_request_child_id(-1), | 110 transferred_request_child_id(-1), |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const RequestNavigationParams& request_params) | 195 const RequestNavigationParams& request_params) |
194 : common_params(common_params), | 196 : common_params(common_params), |
195 start_params(start_params), | 197 start_params(start_params), |
196 request_params(request_params) { | 198 request_params(request_params) { |
197 } | 199 } |
198 | 200 |
199 NavigationParams::~NavigationParams() { | 201 NavigationParams::~NavigationParams() { |
200 } | 202 } |
201 | 203 |
202 } // namespace content | 204 } // namespace content |
OLD | NEW |