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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const CommonNavigationParams& other) = default; | 76 const CommonNavigationParams& other) = default; |
77 | 77 |
78 CommonNavigationParams::~CommonNavigationParams() { | 78 CommonNavigationParams::~CommonNavigationParams() { |
79 } | 79 } |
80 | 80 |
81 BeginNavigationParams::BeginNavigationParams() | 81 BeginNavigationParams::BeginNavigationParams() |
82 : load_flags(0), | 82 : load_flags(0), |
83 has_user_gesture(false), | 83 has_user_gesture(false), |
84 skip_service_worker(false), | 84 skip_service_worker(false), |
85 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION), | 85 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION), |
86 mixed_content_context_type(blink::WebMixedContentContextType::Blockable) { | 86 mixed_content_context_type(blink::WebMixedContentContextType::Blockable), |
87 } | 87 renderer_navigation_id(-1) {} |
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 blink::WebMixedContentContextType mixed_content_context_type, | 95 blink::WebMixedContentContextType mixed_content_context_type, |
96 const base::Optional<url::Origin>& initiator_origin) | 96 const base::Optional<url::Origin>& initiator_origin, |
| 97 int renderer_navigation_id) |
97 : headers(headers), | 98 : headers(headers), |
98 load_flags(load_flags), | 99 load_flags(load_flags), |
99 has_user_gesture(has_user_gesture), | 100 has_user_gesture(has_user_gesture), |
100 skip_service_worker(skip_service_worker), | 101 skip_service_worker(skip_service_worker), |
101 request_context_type(request_context_type), | 102 request_context_type(request_context_type), |
102 mixed_content_context_type(mixed_content_context_type), | 103 mixed_content_context_type(mixed_content_context_type), |
103 initiator_origin(initiator_origin) {} | 104 initiator_origin(initiator_origin), |
| 105 renderer_navigation_id(renderer_navigation_id) {} |
104 | 106 |
105 BeginNavigationParams::BeginNavigationParams( | 107 BeginNavigationParams::BeginNavigationParams( |
106 const BeginNavigationParams& other) = default; | 108 const BeginNavigationParams& other) = default; |
107 | 109 |
108 BeginNavigationParams::~BeginNavigationParams() {} | 110 BeginNavigationParams::~BeginNavigationParams() {} |
109 | 111 |
110 StartNavigationParams::StartNavigationParams() | 112 StartNavigationParams::StartNavigationParams() |
111 : transferred_request_child_id(-1), | 113 : transferred_request_child_id(-1), |
112 transferred_request_request_id(-1) { | 114 transferred_request_request_id(-1) { |
113 } | 115 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 const RequestNavigationParams& request_params) | 198 const RequestNavigationParams& request_params) |
197 : common_params(common_params), | 199 : common_params(common_params), |
198 start_params(start_params), | 200 start_params(start_params), |
199 request_params(request_params) { | 201 request_params(request_params) { |
200 } | 202 } |
201 | 203 |
202 NavigationParams::~NavigationParams() { | 204 NavigationParams::~NavigationParams() { |
203 } | 205 } |
204 | 206 |
205 } // namespace content | 207 } // namespace content |
OLD | NEW |