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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_impl.cc

Issue 9834039: Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system urls w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 #include "content/browser/renderer_host/buffered_resource_handler.h" 36 #include "content/browser/renderer_host/buffered_resource_handler.h"
37 #include "content/browser/renderer_host/cross_site_resource_handler.h" 37 #include "content/browser/renderer_host/cross_site_resource_handler.h"
38 #include "content/browser/renderer_host/doomed_resource_handler.h" 38 #include "content/browser/renderer_host/doomed_resource_handler.h"
39 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h" 39 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h"
40 #include "content/browser/renderer_host/render_view_host_impl.h" 40 #include "content/browser/renderer_host/render_view_host_impl.h"
41 #include "content/browser/renderer_host/resource_message_filter.h" 41 #include "content/browser/renderer_host/resource_message_filter.h"
42 #include "content/public/browser/resource_request_details.h" 42 #include "content/public/browser/resource_request_details.h"
43 #include "content/browser/renderer_host/resource_request_info_impl.h" 43 #include "content/browser/renderer_host/resource_request_info_impl.h"
44 #include "content/browser/renderer_host/sync_resource_handler.h" 44 #include "content/browser/renderer_host/sync_resource_handler.h"
45 #include "content/browser/renderer_host/throttling_resource_handler.h" 45 #include "content/browser/renderer_host/throttling_resource_handler.h"
46 #include "content/browser/resource_context_impl.h"
46 #include "content/browser/ssl/ssl_client_auth_handler.h" 47 #include "content/browser/ssl/ssl_client_auth_handler.h"
47 #include "content/browser/ssl/ssl_manager.h" 48 #include "content/browser/ssl/ssl_manager.h"
48 #include "content/browser/worker_host/worker_service_impl.h" 49 #include "content/browser/worker_host/worker_service_impl.h"
49 #include "content/common/resource_messages.h" 50 #include "content/common/resource_messages.h"
50 #include "content/common/ssl_status_serialization.h" 51 #include "content/common/ssl_status_serialization.h"
51 #include "content/common/view_messages.h" 52 #include "content/common/view_messages.h"
52 #include "content/public/browser/browser_thread.h" 53 #include "content/public/browser/browser_thread.h"
53 #include "content/public/browser/content_browser_client.h" 54 #include "content/public/browser/content_browser_client.h"
54 #include "content/public/browser/download_manager.h" 55 #include "content/public/browser/download_manager.h"
55 #include "content/public/browser/global_request_id.h" 56 #include "content/public/browser/global_request_id.h"
56 #include "content/public/browser/notification_service.h" 57 #include "content/public/browser/notification_service.h"
57 #include "content/public/browser/render_view_host_delegate.h" 58 #include "content/public/browser/render_view_host_delegate.h"
58 #include "content/public/browser/resource_context.h"
59 #include "content/public/browser/resource_dispatcher_host_delegate.h" 59 #include "content/public/browser/resource_dispatcher_host_delegate.h"
60 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" 60 #include "content/public/browser/resource_dispatcher_host_login_delegate.h"
61 #include "content/public/browser/resource_throttle.h" 61 #include "content/public/browser/resource_throttle.h"
62 #include "content/public/common/content_switches.h" 62 #include "content/public/common/content_switches.h"
63 #include "content/public/common/process_type.h" 63 #include "content/public/common/process_type.h"
64 #include "content/public/common/url_constants.h" 64 #include "content/public/common/url_constants.h"
65 #include "net/base/auth.h" 65 #include "net/base/auth.h"
66 #include "net/base/cert_status_flags.h" 66 #include "net/base/cert_status_flags.h"
67 #include "net/base/load_flags.h" 67 #include "net/base/load_flags.h"
68 #include "net/base/mime_util.h" 68 #include "net/base/mime_util.h"
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 if (iter != transferred_navigations_.end()) { 733 if (iter != transferred_navigations_.end()) {
734 deferred_request = iter->second; 734 deferred_request = iter->second;
735 pending_requests_.erase(old_request_id); 735 pending_requests_.erase(old_request_id);
736 transferred_navigations_.erase(iter); 736 transferred_navigations_.erase(iter);
737 } 737 }
738 738
739 ResourceContext* resource_context = filter_->resource_context(); 739 ResourceContext* resource_context = filter_->resource_context();
740 740
741 // Might need to resolve the blob references in the upload data. 741 // Might need to resolve the blob references in the upload data.
742 if (request_data.upload_data) { 742 if (request_data.upload_data) {
743 ResourceContext::GetBlobStorageController(resource_context)-> 743 GetBlobStorageControllerForResourceContext(resource_context)->
744 ResolveBlobReferencesInUploadData(request_data.upload_data.get()); 744 ResolveBlobReferencesInUploadData(request_data.upload_data.get());
745 } 745 }
746 746
747 if (is_shutdown_ || 747 if (is_shutdown_ ||
748 !ShouldServiceRequest(process_type, child_id, request_data)) { 748 !ShouldServiceRequest(process_type, child_id, request_data)) {
749 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id); 749 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id);
750 return; 750 return;
751 } 751 }
752 752
753 const Referrer referrer(MaybeStripReferrer(request_data.referrer), 753 const Referrer referrer(MaybeStripReferrer(request_data.referrer),
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 ResourceType::IsFrame(request_data.resource_type), // allow_download 904 ResourceType::IsFrame(request_data.resource_type), // allow_download
905 request_data.has_user_gesture, 905 request_data.has_user_gesture,
906 request_data.referrer_policy, 906 request_data.referrer_policy,
907 resource_context); 907 resource_context);
908 extra_info->AssociateWithRequest(request); // Request takes ownership. 908 extra_info->AssociateWithRequest(request); // Request takes ownership.
909 909
910 if (request->url().SchemeIs(chrome::kBlobScheme)) { 910 if (request->url().SchemeIs(chrome::kBlobScheme)) {
911 // Hang on to a reference to ensure the blob is not released prior 911 // Hang on to a reference to ensure the blob is not released prior
912 // to the job being started. 912 // to the job being started.
913 webkit_blob::BlobStorageController* controller = 913 webkit_blob::BlobStorageController* controller =
914 ResourceContext::GetBlobStorageController(resource_context); 914 GetBlobStorageControllerForResourceContext(resource_context);
915 extra_info->set_requested_blob_data( 915 extra_info->set_requested_blob_data(
916 controller->GetBlobDataFromUrl(request->url())); 916 controller->GetBlobDataFromUrl(request->url()));
917 } 917 }
918 918
919 // Have the appcache associate its extra info with the request. 919 // Have the appcache associate its extra info with the request.
920 appcache::AppCacheInterceptor::SetExtraRequestInfo( 920 appcache::AppCacheInterceptor::SetExtraRequestInfo(
921 request, ResourceContext::GetAppCacheService(resource_context), child_id, 921 request, ResourceContext::GetAppCacheService(resource_context), child_id,
922 request_data.appcache_host_id, request_data.resource_type); 922 request_data.appcache_host_id, request_data.resource_type);
923 923
924 if (deferred_request) { 924 if (deferred_request) {
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 return allow_cross_origin_auth_prompt_; 2290 return allow_cross_origin_auth_prompt_;
2291 } 2291 }
2292 2292
2293 bool ResourceDispatcherHostImpl::IsTransferredNavigation( 2293 bool ResourceDispatcherHostImpl::IsTransferredNavigation(
2294 const GlobalRequestID& transferred_request_id) const { 2294 const GlobalRequestID& transferred_request_id) const {
2295 return transferred_navigations_.find(transferred_request_id) != 2295 return transferred_navigations_.find(transferred_request_id) !=
2296 transferred_navigations_.end(); 2296 transferred_navigations_.end();
2297 } 2297 }
2298 2298
2299 } // namespace content 2299 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/view_http_cache_job_factory.cc ('k') | content/browser/resource_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698