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/browser_side_navigation_policy.h" | 11 #include "content/public/common/browser_side_navigation_policy.h" |
11 #include "content/public/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 #include "url/url_constants.h" | 14 #include "url/url_constants.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 // PlzNavigate | 18 // PlzNavigate |
18 bool ShouldMakeNetworkRequestForURL(const GURL& url) { | 19 bool ShouldMakeNetworkRequestForURL(const GURL& url) { |
19 CHECK(IsBrowserSideNavigationEnabled()); | 20 CHECK(IsBrowserSideNavigationEnabled()); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 is_same_document_history_load(false), | 128 is_same_document_history_load(false), |
128 is_history_navigation_in_new_child(false), | 129 is_history_navigation_in_new_child(false), |
129 has_committed_real_load(false), | 130 has_committed_real_load(false), |
130 intended_as_new_entry(false), | 131 intended_as_new_entry(false), |
131 pending_history_list_offset(-1), | 132 pending_history_list_offset(-1), |
132 current_history_list_offset(-1), | 133 current_history_list_offset(-1), |
133 current_history_list_length(0), | 134 current_history_list_length(0), |
134 is_view_source(false), | 135 is_view_source(false), |
135 should_clear_history_list(false), | 136 should_clear_history_list(false), |
136 should_create_service_worker(false), | 137 should_create_service_worker(false), |
137 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | 138 service_worker_provider_id(kInvalidServiceWorkerProviderId), |
| 139 appcache_host_id(kAppCacheNoHostId) {} |
138 | 140 |
139 RequestNavigationParams::RequestNavigationParams( | 141 RequestNavigationParams::RequestNavigationParams( |
140 bool is_overriding_user_agent, | 142 bool is_overriding_user_agent, |
141 const std::vector<GURL>& redirects, | 143 const std::vector<GURL>& redirects, |
142 bool can_load_local_resources, | 144 bool can_load_local_resources, |
143 const PageState& page_state, | 145 const PageState& page_state, |
144 int nav_entry_id, | 146 int nav_entry_id, |
145 bool is_same_document_history_load, | 147 bool is_same_document_history_load, |
146 bool is_history_navigation_in_new_child, | 148 bool is_history_navigation_in_new_child, |
147 std::map<std::string, bool> subframe_unique_names, | 149 std::map<std::string, bool> subframe_unique_names, |
(...skipping 13 matching lines...) Expand all Loading... |
161 is_history_navigation_in_new_child(is_history_navigation_in_new_child), | 163 is_history_navigation_in_new_child(is_history_navigation_in_new_child), |
162 subframe_unique_names(subframe_unique_names), | 164 subframe_unique_names(subframe_unique_names), |
163 has_committed_real_load(has_committed_real_load), | 165 has_committed_real_load(has_committed_real_load), |
164 intended_as_new_entry(intended_as_new_entry), | 166 intended_as_new_entry(intended_as_new_entry), |
165 pending_history_list_offset(pending_history_list_offset), | 167 pending_history_list_offset(pending_history_list_offset), |
166 current_history_list_offset(current_history_list_offset), | 168 current_history_list_offset(current_history_list_offset), |
167 current_history_list_length(current_history_list_length), | 169 current_history_list_length(current_history_list_length), |
168 is_view_source(is_view_source), | 170 is_view_source(is_view_source), |
169 should_clear_history_list(should_clear_history_list), | 171 should_clear_history_list(should_clear_history_list), |
170 should_create_service_worker(false), | 172 should_create_service_worker(false), |
171 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | 173 service_worker_provider_id(kInvalidServiceWorkerProviderId), |
| 174 appcache_host_id(kAppCacheNoHostId) {} |
172 | 175 |
173 RequestNavigationParams::RequestNavigationParams( | 176 RequestNavigationParams::RequestNavigationParams( |
174 const RequestNavigationParams& other) = default; | 177 const RequestNavigationParams& other) = default; |
175 | 178 |
176 RequestNavigationParams::~RequestNavigationParams() { | 179 RequestNavigationParams::~RequestNavigationParams() { |
177 } | 180 } |
178 | 181 |
179 NavigationParams::NavigationParams( | 182 NavigationParams::NavigationParams( |
180 const CommonNavigationParams& common_params, | 183 const CommonNavigationParams& common_params, |
181 const StartNavigationParams& start_params, | 184 const StartNavigationParams& start_params, |
182 const RequestNavigationParams& request_params) | 185 const RequestNavigationParams& request_params) |
183 : common_params(common_params), | 186 : common_params(common_params), |
184 start_params(start_params), | 187 start_params(start_params), |
185 request_params(request_params) { | 188 request_params(request_params) { |
186 } | 189 } |
187 | 190 |
188 NavigationParams::~NavigationParams() { | 191 NavigationParams::~NavigationParams() { |
189 } | 192 } |
190 | 193 |
191 } // namespace content | 194 } // namespace content |
OLD | NEW |