| 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 CSPDisposition::CHECK)); // should_check_main_world_csp | 235 CSPDisposition::CHECK, // should_check_main_world_csp |
| 236 false)); // is_form_submission |
| 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 if (navigation_handle) | 1289 if (navigation_handle) |
| 1289 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); | 1290 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); |
| 1290 | 1291 |
| 1291 controller_->SetPendingEntry(std::move(entry)); | 1292 controller_->SetPendingEntry(std::move(entry)); |
| 1292 if (delegate_) | 1293 if (delegate_) |
| 1293 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); | 1294 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); |
| 1294 } | 1295 } |
| 1295 } | 1296 } |
| 1296 | 1297 |
| 1297 } // namespace content | 1298 } // namespace content |
| OLD | NEW |