diff options
author | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 11:19:38 +0000 |
---|---|---|
committer | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 11:19:38 +0000 |
commit | 9dcf724687237e1b8c94a103f65691287b058378 (patch) | |
tree | 80b2e5b4d475eeb4c8a8269f79a60518dbda152f /content/browser/loader/resource_dispatcher_host_impl.h | |
parent | 96496f30372ffc001a856f8339ed73d12e2af377 (diff) | |
download | chromium_src-9dcf724687237e1b8c94a103f65691287b058378.zip chromium_src-9dcf724687237e1b8c94a103f65691287b058378.tar.gz chromium_src-9dcf724687237e1b8c94a103f65691287b058378.tar.bz2 |
Split ResourceDispatcherHostImpl::BeginRequest
This method is very long. Factor out code building a resource handler
into a separate method to improve readability.
BUG=none
Review URL: https://codereview.chromium.org/94503003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/resource_dispatcher_host_impl.h')
-rw-r--r-- | content/browser/loader/resource_dispatcher_host_impl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h index ef0e4cf..2e0253a 100644 --- a/content/browser/loader/resource_dispatcher_host_impl.h +++ b/content/browser/loader/resource_dispatcher_host_impl.h @@ -372,6 +372,18 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl const ResourceHostMsg_Request& request_data, IPC::Message* sync_result, // only valid for sync int route_id); // only valid for async + + // Creates a ResourceHandler to be used by BeginRequest() for normal resource + // loading. + scoped_ptr<ResourceHandler> CreateResourceHandler( + net::URLRequest* request, + const ResourceHostMsg_Request& request_data, + IPC::Message* sync_result, + int route_id, + int process_type, + int child_id, + ResourceContext* resource_context); + void OnDataDownloadedACK(int request_id); void OnUploadProgressACK(int request_id); void OnCancelRequest(int request_id); |