| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const CommonNavigationParams& other) = default; | 90 const CommonNavigationParams& other) = default; |
| 91 | 91 |
| 92 CommonNavigationParams::~CommonNavigationParams() { | 92 CommonNavigationParams::~CommonNavigationParams() { |
| 93 } | 93 } |
| 94 | 94 |
| 95 BeginNavigationParams::BeginNavigationParams() | 95 BeginNavigationParams::BeginNavigationParams() |
| 96 : load_flags(0), | 96 : load_flags(0), |
| 97 has_user_gesture(false), | 97 has_user_gesture(false), |
| 98 skip_service_worker(false), | 98 skip_service_worker(false), |
| 99 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION), | 99 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION), |
| 100 mixed_content_context_type(blink::WebMixedContentContextType::Blockable) { | 100 mixed_content_context_type(blink::WebMixedContentContextType::Blockable), |
| 101 } | 101 is_form_submission(false) {} |
| 102 | 102 |
| 103 BeginNavigationParams::BeginNavigationParams( | 103 BeginNavigationParams::BeginNavigationParams( |
| 104 std::string headers, | 104 std::string headers, |
| 105 int load_flags, | 105 int load_flags, |
| 106 bool has_user_gesture, | 106 bool has_user_gesture, |
| 107 bool skip_service_worker, | 107 bool skip_service_worker, |
| 108 RequestContextType request_context_type, | 108 RequestContextType request_context_type, |
| 109 blink::WebMixedContentContextType mixed_content_context_type, | 109 blink::WebMixedContentContextType mixed_content_context_type, |
| 110 bool is_form_submission, |
| 110 const base::Optional<url::Origin>& initiator_origin) | 111 const base::Optional<url::Origin>& initiator_origin) |
| 111 : headers(headers), | 112 : headers(headers), |
| 112 load_flags(load_flags), | 113 load_flags(load_flags), |
| 113 has_user_gesture(has_user_gesture), | 114 has_user_gesture(has_user_gesture), |
| 114 skip_service_worker(skip_service_worker), | 115 skip_service_worker(skip_service_worker), |
| 115 request_context_type(request_context_type), | 116 request_context_type(request_context_type), |
| 116 mixed_content_context_type(mixed_content_context_type), | 117 mixed_content_context_type(mixed_content_context_type), |
| 118 is_form_submission(is_form_submission), |
| 117 initiator_origin(initiator_origin) {} | 119 initiator_origin(initiator_origin) {} |
| 118 | 120 |
| 119 BeginNavigationParams::BeginNavigationParams( | 121 BeginNavigationParams::BeginNavigationParams( |
| 120 const BeginNavigationParams& other) = default; | 122 const BeginNavigationParams& other) = default; |
| 121 | 123 |
| 122 BeginNavigationParams::~BeginNavigationParams() {} | 124 BeginNavigationParams::~BeginNavigationParams() {} |
| 123 | 125 |
| 124 StartNavigationParams::StartNavigationParams() | 126 StartNavigationParams::StartNavigationParams() |
| 125 : transferred_request_child_id(-1), | 127 : transferred_request_child_id(-1), |
| 126 transferred_request_request_id(-1) { | 128 transferred_request_request_id(-1) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 const RequestNavigationParams& request_params) | 212 const RequestNavigationParams& request_params) |
| 211 : common_params(common_params), | 213 : common_params(common_params), |
| 212 start_params(start_params), | 214 start_params(start_params), |
| 213 request_params(request_params) { | 215 request_params(request_params) { |
| 214 } | 216 } |
| 215 | 217 |
| 216 NavigationParams::~NavigationParams() { | 218 NavigationParams::~NavigationParams() { |
| 217 } | 219 } |
| 218 | 220 |
| 219 } // namespace content | 221 } // namespace content |
| OLD | NEW |