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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include "base/debug/dump_without_crashing.h" 7 #include "base/debug/dump_without_crashing.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/browser/appcache/appcache_navigation_handle.h"
10 #include "content/browser/appcache/appcache_service_impl.h"
9 #include "content/browser/browsing_data/clear_site_data_throttle.h" 11 #include "content/browser/browsing_data/clear_site_data_throttle.h"
10 #include "content/browser/child_process_security_policy_impl.h" 12 #include "content/browser/child_process_security_policy_impl.h"
11 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 13 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
12 #include "content/browser/frame_host/debug_urls.h" 14 #include "content/browser/frame_host/debug_urls.h"
13 #include "content/browser/frame_host/frame_tree_node.h" 15 #include "content/browser/frame_host/frame_tree_node.h"
14 #include "content/browser/frame_host/navigator.h" 16 #include "content/browser/frame_host/navigator.h"
15 #include "content/browser/frame_host/navigator_delegate.h" 17 #include "content/browser/frame_host/navigator_delegate.h"
16 #include "content/browser/loader/resource_dispatcher_host_impl.h" 18 #include "content/browser/loader/resource_dispatcher_host_impl.h"
17 #include "content/browser/service_worker/service_worker_context_wrapper.h" 19 #include "content/browser/service_worker/service_worker_context_wrapper.h"
18 #include "content/browser/service_worker/service_worker_navigation_handle.h" 20 #include "content/browser/service_worker/service_worker_navigation_handle.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 return request_id_; 408 return request_id_;
407 } 409 }
408 410
409 void NavigationHandleImpl::InitServiceWorkerHandle( 411 void NavigationHandleImpl::InitServiceWorkerHandle(
410 ServiceWorkerContextWrapper* service_worker_context) { 412 ServiceWorkerContextWrapper* service_worker_context) {
411 DCHECK(IsBrowserSideNavigationEnabled()); 413 DCHECK(IsBrowserSideNavigationEnabled());
412 service_worker_handle_.reset( 414 service_worker_handle_.reset(
413 new ServiceWorkerNavigationHandle(service_worker_context)); 415 new ServiceWorkerNavigationHandle(service_worker_context));
414 } 416 }
415 417
418 void NavigationHandleImpl::InitAppCacheHandle(
419 ChromeAppCacheService* appcache_service) {
420 DCHECK(IsBrowserSideNavigationEnabled());
421 appcache_handle_.reset(new AppCacheNavigationHandle(appcache_service));
422 }
423
416 void NavigationHandleImpl::WillStartRequest( 424 void NavigationHandleImpl::WillStartRequest(
417 const std::string& method, 425 const std::string& method,
418 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body, 426 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body,
419 const Referrer& sanitized_referrer, 427 const Referrer& sanitized_referrer,
420 ui::PageTransition transition, 428 ui::PageTransition transition,
421 bool is_external_protocol, 429 bool is_external_protocol,
422 RequestContextType request_context_type, 430 RequestContextType request_context_type,
423 const ThrottleChecksFinishedCallback& callback) { 431 const ThrottleChecksFinishedCallback& callback) {
424 if (method != "POST") 432 if (method != "POST")
425 DCHECK(!resource_request_body); 433 DCHECK(!resource_request_body);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 throttles_to_register.push_back(std::move(clear_site_data_throttle)); 796 throttles_to_register.push_back(std::move(clear_site_data_throttle));
789 797
790 if (throttles_to_register.size() > 0) { 798 if (throttles_to_register.size() > 0) {
791 throttles_.insert(throttles_.begin(), throttles_to_register.begin(), 799 throttles_.insert(throttles_.begin(), throttles_to_register.begin(),
792 throttles_to_register.end()); 800 throttles_to_register.end());
793 throttles_to_register.weak_clear(); 801 throttles_to_register.weak_clear();
794 } 802 }
795 } 803 }
796 804
797 } // namespace content 805 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/browser/frame_host/navigation_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698