Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Side by Side Diff: content/browser/frame_host/navigation_request.cc

Issue 2572453002: [PlzNavigate] Wire page visibility info to navigation requests (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/frame_host/navigation_request_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/frame_host/navigation_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698