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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 23496076: WIP - Refactor programmatic downloads Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index e6f2241d9a05a424674fa0a3f16a06c50000451f..4f0cd48030d691c5de3df0e3473cc46d08c3e4e8 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -62,7 +62,6 @@ class ResourceMessageFilter;
class ResourceRequestInfoImpl;
class SaveFileManager;
class WebContentsImpl;
-struct DownloadSaveInfo;
struct Referrer;
class CONTENT_EXPORT ResourceDispatcherHostImpl
@@ -79,17 +78,6 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// ResourceDispatcherHost implementation:
virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) OVERRIDE;
virtual void SetAllowCrossOriginAuthPrompt(bool value) OVERRIDE;
- virtual net::Error BeginDownload(
- scoped_ptr<net::URLRequest> request,
- const Referrer& referrer,
- bool is_content_initiated,
- ResourceContext* context,
- int child_id,
- int route_id,
- bool prefer_cache,
- scoped_ptr<DownloadSaveInfo> save_info,
- uint32 download_id,
- const DownloadStartedCallback& started_callback) OVERRIDE;
virtual void ClearLoginDelegateForRequest(net::URLRequest* request) OVERRIDE;
virtual void BlockRequestsForRoute(int child_id, int route_id) OVERRIDE;
virtual void ResumeBlockedRequestsForRoute(
@@ -203,15 +191,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// Must be called after the ResourceRequestInfo has been created
// and associated with the request.
- // |id| should be |content::DownloadItem::kInvalidId| to request automatic
- // assignment.
scoped_ptr<ResourceHandler> CreateResourceHandlerForDownload(
net::URLRequest* request,
- bool is_content_initiated,
- bool must_download,
- uint32 id,
- scoped_ptr<DownloadSaveInfo> save_info,
- const DownloadUrlParameters::OnStartedCallback& started_cb);
+ bool must_download);
// Must be called after the ResourceRequestInfo has been created
// and associated with the request.
« no previous file with comments | « content/browser/loader/buffered_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698