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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 6 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // the request should cancel. 289 // the request should cancel.
290 bool HasSufficientResourcesForRequest(net::URLRequest* request); 290 bool HasSufficientResourcesForRequest(net::URLRequest* request);
291 291
292 // Called by a ResourceHandler after it has finished its request and is done 292 // Called by a ResourceHandler after it has finished its request and is done
293 // using its shared memory buffer. Frees up that file descriptor to be used 293 // using its shared memory buffer. Frees up that file descriptor to be used
294 // elsewhere. 294 // elsewhere.
295 void FinishedWithResourcesForRequest(net::URLRequest* request); 295 void FinishedWithResourcesForRequest(net::URLRequest* request);
296 296
297 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the 297 // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the
298 // loader to attach to the leaf resource handler. 298 // loader to attach to the leaf resource handler.
299 void BeginNavigationRequest( 299 void BeginNavigationRequest(ResourceContext* resource_context,
300 ResourceContext* resource_context, 300 const NavigationRequestInfo& info,
301 const NavigationRequestInfo& info, 301 NavigationURLLoaderImplCore* loader);
302 NavigationURLLoaderImplCore* loader,
303 ServiceWorkerNavigationHandleCore* service_worker_handle_core);
304 302
305 // Turns on stale-while-revalidate support, regardless of command-line flags 303 // Turns on stale-while-revalidate support, regardless of command-line flags
306 // or experiment status. For unit tests only. 304 // or experiment status. For unit tests only.
307 void EnableStaleWhileRevalidateForTesting(); 305 void EnableStaleWhileRevalidateForTesting();
308 306
309 private: 307 private:
310 friend class LoaderIOThreadNotifier; 308 friend class LoaderIOThreadNotifier;
311 friend class ResourceDispatcherHostTest; 309 friend class ResourceDispatcherHostTest;
312 310
313 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, 311 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // Allows tests to use a mock CertStore. If set, the CertStore must 646 // Allows tests to use a mock CertStore. If set, the CertStore must
649 // outlive this ResourceDispatcherHostImpl. 647 // outlive this ResourceDispatcherHostImpl.
650 CertStore* cert_store_for_testing_; 648 CertStore* cert_store_for_testing_;
651 649
652 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 650 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
653 }; 651 };
654 652
655 } // namespace content 653 } // namespace content
656 654
657 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 655 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698