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

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

Issue 2847443002: PlzNavigate: make NavigationResourceHandler a LayeredResourceHandler (Closed)
Patch Set: Removed one unit test Created 3 years, 7 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 15 matching lines...) Expand all
26 #include "base/observer_list.h" 26 #include "base/observer_list.h"
27 #include "base/single_thread_task_runner.h" 27 #include "base/single_thread_task_runner.h"
28 #include "base/time/time.h" 28 #include "base/time/time.h"
29 #include "content/browser/loader/global_routing_id.h" 29 #include "content/browser/loader/global_routing_id.h"
30 #include "content/browser/loader/resource_loader_delegate.h" 30 #include "content/browser/loader/resource_loader_delegate.h"
31 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
32 #include "content/common/url_loader.mojom.h" 32 #include "content/common/url_loader.mojom.h"
33 #include "content/public/browser/global_request_id.h" 33 #include "content/public/browser/global_request_id.h"
34 #include "content/public/browser/resource_dispatcher_host.h" 34 #include "content/public/browser/resource_dispatcher_host.h"
35 #include "content/public/browser/resource_request_info.h" 35 #include "content/public/browser/resource_request_info.h"
36 #include "content/public/browser/stream_handle.h"
36 #include "content/public/common/previews_state.h" 37 #include "content/public/common/previews_state.h"
37 #include "content/public/common/request_context_type.h" 38 #include "content/public/common/request_context_type.h"
38 #include "content/public/common/resource_type.h" 39 #include "content/public/common/resource_type.h"
39 #include "ipc/ipc_message.h" 40 #include "ipc/ipc_message.h"
40 #include "net/base/load_states.h" 41 #include "net/base/load_states.h"
41 #include "net/base/request_priority.h" 42 #include "net/base/request_priority.h"
42 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" 43 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
43 #include "url/gurl.h" 44 #include "url/gurl.h"
44 45
45 namespace base { 46 namespace base {
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 // ResourceThrottles. 600 // ResourceThrottles.
600 std::unique_ptr<ResourceHandler> AddStandardHandlers( 601 std::unique_ptr<ResourceHandler> AddStandardHandlers(
601 net::URLRequest* request, 602 net::URLRequest* request,
602 ResourceType resource_type, 603 ResourceType resource_type,
603 ResourceContext* resource_context, 604 ResourceContext* resource_context,
604 RequestContextType fetch_request_context_type, 605 RequestContextType fetch_request_context_type,
605 blink::WebMixedContentContextType fetch_mixed_content_context_type, 606 blink::WebMixedContentContextType fetch_mixed_content_context_type,
606 AppCacheService* appcache_service, 607 AppCacheService* appcache_service,
607 int child_id, 608 int child_id,
608 int route_id, 609 int route_id,
609 std::unique_ptr<ResourceHandler> handler); 610 std::unique_ptr<ResourceHandler> handler,
611 NavigationURLLoaderImplCore* loader,
612 std::unique_ptr<StreamHandle> stream_handle);
mmenke 2017/04/28 16:02:21 Can we document these? While nothing else other t
clamy 2017/05/02 15:05:44 Done.
610 613
611 void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id); 614 void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id);
612 void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info, 615 void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info,
613 int request_id); 616 int request_id);
614 void OnDidChangePriority(ResourceRequesterInfo* requester_info, 617 void OnDidChangePriority(ResourceRequesterInfo* requester_info,
615 int request_id, 618 int request_id,
616 net::RequestPriority new_priority, 619 net::RequestPriority new_priority,
617 int intra_priority_value); 620 int intra_priority_value);
618 621
619 // Creates ResourceRequestInfoImpl for a download or page save. 622 // Creates ResourceRequestInfoImpl for a download or page save.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 779
777 // Task runner for the IO thead. 780 // Task runner for the IO thead.
778 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; 781 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
779 782
780 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 783 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
781 }; 784 };
782 785
783 } // namespace content 786 } // namespace content
784 787
785 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 788 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698