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

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

Issue 10861002: Revert 152213 - Replace the DownloadFileManager with direct ownership of DownloadFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/renderer_host/resource_dispatcher_host_impl.h
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_impl.h (revision 152281)
+++ content/browser/renderer_host/resource_dispatcher_host_impl.h (working copy)
@@ -35,6 +35,7 @@
#include "net/url_request/url_request.h"
#include "webkit/glue/resource_type.h"
+class DownloadFileManager;
class ResourceHandler;
class SaveFileManager;
class WebContentsImpl;
@@ -143,6 +144,10 @@
// request. Experimentally obtained.
static const int kAvgBytesPerOutstandingRequest = 4400;
+ DownloadFileManager* download_file_manager() const {
+ return download_file_manager_;
+ }
+
SaveFileManager* save_file_manager() const {
return save_file_manager_;
}
@@ -351,6 +356,9 @@
scoped_ptr<base::RepeatingTimer<ResourceDispatcherHostImpl> >
update_load_states_timer_;
+ // We own the download file writing thread and manager
+ scoped_refptr<DownloadFileManager> download_file_manager_;
+
// We own the save file manager.
scoped_refptr<SaveFileManager> save_file_manager_;
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/renderer_host/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698