| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 BeginNavigationParams::BeginNavigationParams() | 86 BeginNavigationParams::BeginNavigationParams() |
| 87 : load_flags(0), | 87 : load_flags(0), |
| 88 skip_service_worker(false), | 88 skip_service_worker(false), |
| 89 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} | 89 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} |
| 90 | 90 |
| 91 BeginNavigationParams::BeginNavigationParams( | 91 BeginNavigationParams::BeginNavigationParams( |
| 92 std::string headers, | 92 std::string headers, |
| 93 int load_flags, | 93 int load_flags, |
| 94 bool skip_service_worker, | 94 bool skip_service_worker, |
| 95 RequestContextType request_context_type) | 95 RequestContextType request_context_type, |
| 96 const base::Optional<url::Origin>& initiator) |
| 96 : headers(headers), | 97 : headers(headers), |
| 97 load_flags(load_flags), | 98 load_flags(load_flags), |
| 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(initiator) {} |
| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const RequestNavigationParams& request_params) | 189 const RequestNavigationParams& request_params) |
| 186 : common_params(common_params), | 190 : common_params(common_params), |
| 187 start_params(start_params), | 191 start_params(start_params), |
| 188 request_params(request_params) { | 192 request_params(request_params) { |
| 189 } | 193 } |
| 190 | 194 |
| 191 NavigationParams::~NavigationParams() { | 195 NavigationParams::~NavigationParams() { |
| 192 } | 196 } |
| 193 | 197 |
| 194 } // namespace content | 198 } // namespace content |
| OLD | NEW |