OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/frame_host/navigator_impl.h" | 5 #include "content/browser/frame_host/navigator_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 } | 225 } |
226 | 226 |
227 std::vector<GURL> validated_redirect_chain = redirect_chain; | 227 std::vector<GURL> validated_redirect_chain = redirect_chain; |
228 for (size_t i = 0; i < validated_redirect_chain.size(); ++i) | 228 for (size_t i = 0; i < validated_redirect_chain.size(); ++i) |
229 render_process_host->FilterURL(false, &validated_redirect_chain[i]); | 229 render_process_host->FilterURL(false, &validated_redirect_chain[i]); |
230 render_frame_host->SetNavigationHandle(NavigationHandleImpl::Create( | 230 render_frame_host->SetNavigationHandle(NavigationHandleImpl::Create( |
231 validated_url, validated_redirect_chain, | 231 validated_url, validated_redirect_chain, |
232 render_frame_host->frame_tree_node(), is_renderer_initiated, | 232 render_frame_host->frame_tree_node(), is_renderer_initiated, |
233 false, // is_same_page | 233 false, // is_same_page |
234 navigation_start, pending_nav_entry_id, started_from_context_menu, | 234 navigation_start, pending_nav_entry_id, started_from_context_menu, |
235 false)); // should_bypass_main_world_csp | 235 false, // should_bypass_main_world_csp |
236 false)); // is_form_submission: | |
alexmos
2017/03/16 23:05:36
nit: no : at the end
arthursonzogni
2017/03/17 14:58:25
Done.
| |
236 } | 237 } |
237 | 238 |
238 void NavigatorImpl::DidFailProvisionalLoadWithError( | 239 void NavigatorImpl::DidFailProvisionalLoadWithError( |
239 RenderFrameHostImpl* render_frame_host, | 240 RenderFrameHostImpl* render_frame_host, |
240 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) { | 241 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) { |
241 VLOG(1) << "Failed Provisional Load: " << params.url.possibly_invalid_spec() | 242 VLOG(1) << "Failed Provisional Load: " << params.url.possibly_invalid_spec() |
242 << ", error_code: " << params.error_code | 243 << ", error_code: " << params.error_code |
243 << ", error_description: " << params.error_description | 244 << ", error_description: " << params.error_description |
244 << ", showing_repost_interstitial: " << | 245 << ", showing_repost_interstitial: " << |
245 params.showing_repost_interstitial | 246 params.showing_repost_interstitial |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1290 if (navigation_handle) | 1291 if (navigation_handle) |
1291 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); | 1292 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); |
1292 | 1293 |
1293 controller_->SetPendingEntry(std::move(entry)); | 1294 controller_->SetPendingEntry(std::move(entry)); |
1294 if (delegate_) | 1295 if (delegate_) |
1295 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); | 1296 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); |
1296 } | 1297 } |
1297 } | 1298 } |
1298 | 1299 |
1299 } // namespace content | 1300 } // namespace content |
OLD | NEW |