OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 #include "ipc/ipc_message.h" | 37 #include "ipc/ipc_message.h" |
38 #include "net/base/load_states.h" | 38 #include "net/base/load_states.h" |
39 #include "net/base/request_priority.h" | 39 #include "net/base/request_priority.h" |
40 #include "url/gurl.h" | 40 #include "url/gurl.h" |
41 | 41 |
42 namespace base { | 42 namespace base { |
43 class FilePath; | 43 class FilePath; |
44 class RepeatingTimer; | 44 class RepeatingTimer; |
45 } | 45 } |
46 | 46 |
| 47 namespace blink { |
| 48 enum class WebMixedContentContextType; |
| 49 } |
| 50 |
47 namespace net { | 51 namespace net { |
48 class URLRequest; | 52 class URLRequest; |
49 class HttpRequestHeaders; | 53 class HttpRequestHeaders; |
50 } | 54 } |
51 | 55 |
52 namespace storage { | 56 namespace storage { |
53 class ShareableFileReference; | 57 class ShareableFileReference; |
54 } | 58 } |
55 | 59 |
56 namespace content { | 60 namespace content { |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 mojom::URLLoaderClientAssociatedPtr url_loader_client); | 615 mojom::URLLoaderClientAssociatedPtr url_loader_client); |
612 | 616 |
613 // Wraps |handler| in the standard resource handlers for normal resource | 617 // Wraps |handler| in the standard resource handlers for normal resource |
614 // loading and navigation requests. This adds MimeTypeResourceHandler and | 618 // loading and navigation requests. This adds MimeTypeResourceHandler and |
615 // ResourceThrottles. | 619 // ResourceThrottles. |
616 std::unique_ptr<ResourceHandler> AddStandardHandlers( | 620 std::unique_ptr<ResourceHandler> AddStandardHandlers( |
617 net::URLRequest* request, | 621 net::URLRequest* request, |
618 ResourceType resource_type, | 622 ResourceType resource_type, |
619 ResourceContext* resource_context, | 623 ResourceContext* resource_context, |
620 RequestContextType fetch_request_context_type, | 624 RequestContextType fetch_request_context_type, |
| 625 blink::WebMixedContentContextType fetch_mixed_content_context_type, |
621 AppCacheService* appcache_service, | 626 AppCacheService* appcache_service, |
622 int child_id, | 627 int child_id, |
623 int route_id, | 628 int route_id, |
624 std::unique_ptr<ResourceHandler> handler); | 629 std::unique_ptr<ResourceHandler> handler); |
625 | 630 |
626 void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id); | 631 void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id); |
627 void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info, | 632 void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info, |
628 int request_id); | 633 int request_id); |
629 void OnDidChangePriority(ResourceRequesterInfo* requester_info, | 634 void OnDidChangePriority(ResourceRequesterInfo* requester_info, |
630 int request_id, | 635 int request_id, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 787 |
783 // Points to the registered download handler intercept. | 788 // Points to the registered download handler intercept. |
784 CreateDownloadHandlerIntercept create_download_handler_intercept_; | 789 CreateDownloadHandlerIntercept create_download_handler_intercept_; |
785 | 790 |
786 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 791 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
787 }; | 792 }; |
788 | 793 |
789 } // namespace content | 794 } // namespace content |
790 | 795 |
791 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 796 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |