| 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/browser/frame_host/navigation_request.h" | 5 #include "content/browser/frame_host/navigation_request.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "content/browser/appcache/appcache_navigation_handle.h" | 9 #include "content/browser/appcache/appcache_navigation_handle.h" |
| 10 #include "content/browser/appcache/chrome_appcache_service.h" | 10 #include "content/browser/appcache/chrome_appcache_service.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 bool report_raw_headers = | 591 bool report_raw_headers = |
| 592 RenderFrameDevToolsAgentHost::IsNetworkHandlerEnabled(frame_tree_node_); | 592 RenderFrameDevToolsAgentHost::IsNetworkHandlerEnabled(frame_tree_node_); |
| 593 | 593 |
| 594 loader_ = NavigationURLLoader::Create( | 594 loader_ = NavigationURLLoader::Create( |
| 595 frame_tree_node_->navigator()->GetController()->GetBrowserContext(), | 595 frame_tree_node_->navigator()->GetController()->GetBrowserContext(), |
| 596 base::MakeUnique<NavigationRequestInfo>( | 596 base::MakeUnique<NavigationRequestInfo>( |
| 597 common_params_, begin_params_, first_party_for_cookies, | 597 common_params_, begin_params_, first_party_for_cookies, |
| 598 frame_tree_node_->current_origin(), frame_tree_node_->IsMainFrame(), | 598 frame_tree_node_->current_origin(), frame_tree_node_->IsMainFrame(), |
| 599 parent_is_main_frame, IsSecureFrame(frame_tree_node_->parent()), | 599 parent_is_main_frame, IsSecureFrame(frame_tree_node_->parent()), |
| 600 frame_tree_node_->frame_tree_node_id(), is_for_guests_only, | 600 frame_tree_node_->frame_tree_node_id(), is_for_guests_only, |
| 601 report_raw_headers), | 601 report_raw_headers, navigating_frame_host->GetVisibilityState()), |
| 602 std::move(navigation_ui_data), | 602 std::move(navigation_ui_data), |
| 603 navigation_handle_->service_worker_handle(), | 603 navigation_handle_->service_worker_handle(), |
| 604 navigation_handle_->appcache_handle(), this); | 604 navigation_handle_->appcache_handle(), this); |
| 605 } | 605 } |
| 606 | 606 |
| 607 void NavigationRequest::OnRedirectChecksComplete( | 607 void NavigationRequest::OnRedirectChecksComplete( |
| 608 NavigationThrottle::ThrottleCheckResult result) { | 608 NavigationThrottle::ThrottleCheckResult result) { |
| 609 CHECK(result != NavigationThrottle::DEFER); | 609 CHECK(result != NavigationThrottle::DEFER); |
| 610 | 610 |
| 611 // Abort the request if needed. This will destroy the NavigationRequest. | 611 // Abort the request if needed. This will destroy the NavigationRequest. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 TransferNavigationHandleOwnership(render_frame_host); | 655 TransferNavigationHandleOwnership(render_frame_host); |
| 656 | 656 |
| 657 render_frame_host->CommitNavigation(response_.get(), std::move(body_), | 657 render_frame_host->CommitNavigation(response_.get(), std::move(body_), |
| 658 common_params_, request_params_, | 658 common_params_, request_params_, |
| 659 is_view_source_); | 659 is_view_source_); |
| 660 | 660 |
| 661 frame_tree_node_->ResetNavigationRequest(true); | 661 frame_tree_node_->ResetNavigationRequest(true); |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace content | 664 } // namespace content |
| OLD | NEW |