| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 is_form_submission(false) {} | 101 is_form_submission(false), |
| 102 renderer_navigation_id(kInvalidRenderNavigationId) {} |
| 102 | 103 |
| 103 BeginNavigationParams::BeginNavigationParams( | 104 BeginNavigationParams::BeginNavigationParams( |
| 104 std::string headers, | 105 std::string headers, |
| 105 int load_flags, | 106 int load_flags, |
| 106 bool has_user_gesture, | 107 bool has_user_gesture, |
| 107 bool skip_service_worker, | 108 bool skip_service_worker, |
| 108 RequestContextType request_context_type, | 109 RequestContextType request_context_type, |
| 109 blink::WebMixedContentContextType mixed_content_context_type, | 110 blink::WebMixedContentContextType mixed_content_context_type, |
| 110 bool is_form_submission, | 111 bool is_form_submission, |
| 111 const base::Optional<url::Origin>& initiator_origin) | 112 const base::Optional<url::Origin>& initiator_origin, |
| 113 int renderer_navigation_id) |
| 112 : headers(headers), | 114 : headers(headers), |
| 113 load_flags(load_flags), | 115 load_flags(load_flags), |
| 114 has_user_gesture(has_user_gesture), | 116 has_user_gesture(has_user_gesture), |
| 115 skip_service_worker(skip_service_worker), | 117 skip_service_worker(skip_service_worker), |
| 116 request_context_type(request_context_type), | 118 request_context_type(request_context_type), |
| 117 mixed_content_context_type(mixed_content_context_type), | 119 mixed_content_context_type(mixed_content_context_type), |
| 118 is_form_submission(is_form_submission), | 120 is_form_submission(is_form_submission), |
| 119 initiator_origin(initiator_origin) {} | 121 initiator_origin(initiator_origin), |
| 122 renderer_navigation_id(renderer_navigation_id) {} |
| 120 | 123 |
| 121 BeginNavigationParams::BeginNavigationParams( | 124 BeginNavigationParams::BeginNavigationParams( |
| 122 const BeginNavigationParams& other) = default; | 125 const BeginNavigationParams& other) = default; |
| 123 | 126 |
| 124 BeginNavigationParams::~BeginNavigationParams() {} | 127 BeginNavigationParams::~BeginNavigationParams() {} |
| 125 | 128 |
| 126 StartNavigationParams::StartNavigationParams() | 129 StartNavigationParams::StartNavigationParams() |
| 127 : transferred_request_child_id(-1), | 130 : transferred_request_child_id(-1), |
| 128 transferred_request_request_id(-1) { | 131 transferred_request_request_id(-1) { |
| 129 } | 132 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 const RequestNavigationParams& request_params) | 215 const RequestNavigationParams& request_params) |
| 213 : common_params(common_params), | 216 : common_params(common_params), |
| 214 start_params(start_params), | 217 start_params(start_params), |
| 215 request_params(request_params) { | 218 request_params(request_params) { |
| 216 } | 219 } |
| 217 | 220 |
| 218 NavigationParams::~NavigationParams() { | 221 NavigationParams::~NavigationParams() { |
| 219 } | 222 } |
| 220 | 223 |
| 221 } // namespace content | 224 } // namespace content |
| OLD | NEW |