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/appcache_info.h" | 10 #include "content/public/common/appcache_info.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 : load_flags(0), | 84 : load_flags(0), |
85 has_user_gesture(false), | 85 has_user_gesture(false), |
86 skip_service_worker(false), | 86 skip_service_worker(false), |
87 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} | 87 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} |
88 | 88 |
89 BeginNavigationParams::BeginNavigationParams( | 89 BeginNavigationParams::BeginNavigationParams( |
90 std::string headers, | 90 std::string headers, |
91 int load_flags, | 91 int load_flags, |
92 bool has_user_gesture, | 92 bool has_user_gesture, |
93 bool skip_service_worker, | 93 bool skip_service_worker, |
94 RequestContextType request_context_type) | 94 RequestContextType request_context_type, |
| 95 const base::Optional<url::Origin>& initiator_origin) |
95 : headers(headers), | 96 : headers(headers), |
96 load_flags(load_flags), | 97 load_flags(load_flags), |
97 has_user_gesture(has_user_gesture), | 98 has_user_gesture(has_user_gesture), |
98 skip_service_worker(skip_service_worker), | 99 skip_service_worker(skip_service_worker), |
99 request_context_type(request_context_type) {} | 100 request_context_type(request_context_type), |
| 101 initiator_origin(initiator_origin) {} |
100 | 102 |
101 BeginNavigationParams::BeginNavigationParams( | 103 BeginNavigationParams::BeginNavigationParams( |
102 const BeginNavigationParams& other) = default; | 104 const BeginNavigationParams& other) = default; |
103 | 105 |
| 106 BeginNavigationParams::~BeginNavigationParams() {} |
| 107 |
104 StartNavigationParams::StartNavigationParams() | 108 StartNavigationParams::StartNavigationParams() |
105 : transferred_request_child_id(-1), | 109 : transferred_request_child_id(-1), |
106 transferred_request_request_id(-1) { | 110 transferred_request_request_id(-1) { |
107 } | 111 } |
108 | 112 |
109 StartNavigationParams::StartNavigationParams( | 113 StartNavigationParams::StartNavigationParams( |
110 const std::string& extra_headers, | 114 const std::string& extra_headers, |
111 int transferred_request_child_id, | 115 int transferred_request_child_id, |
112 int transferred_request_request_id) | 116 int transferred_request_request_id) |
113 : extra_headers(extra_headers), | 117 : extra_headers(extra_headers), |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const RequestNavigationParams& request_params) | 194 const RequestNavigationParams& request_params) |
191 : common_params(common_params), | 195 : common_params(common_params), |
192 start_params(start_params), | 196 start_params(start_params), |
193 request_params(request_params) { | 197 request_params(request_params) { |
194 } | 198 } |
195 | 199 |
196 NavigationParams::~NavigationParams() { | 200 NavigationParams::~NavigationParams() { |
197 } | 201 } |
198 | 202 |
199 } // namespace content | 203 } // namespace content |
OLD | NEW |