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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 years, 11 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 26 matching lines...) Expand all
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698