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

Unified Diff: net/url_request/url_request_file_job.h

Issue 22795006: Remove WorkerPool dependency from URLRequestFileJob. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android include Created 7 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: net/url_request/url_request_file_job.h
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h
index 6fc7fb919801c850982b55cd0742f443cafc5756..48ca639fe5e3b7fb7fe59a3c482618c0110f87d9 100644
--- a/net/url_request/url_request_file_job.h
+++ b/net/url_request/url_request_file_job.h
@@ -31,7 +31,8 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
public:
URLRequestFileJob(URLRequest* request,
NetworkDelegate* network_delegate,
- const base::FilePath& file_path);
+ const base::FilePath& file_path,
+ const scoped_refptr<base::TaskRunner>& task_runner);
// URLRequestJob:
virtual void Start() OVERRIDE;
@@ -91,6 +92,7 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
scoped_ptr<FileStream> stream_;
FileMetaInfo meta_info_;
+ scoped_refptr<base::TaskRunner> task_runner_;
HttpByteRange byte_range_;
int64 remaining_bytes_;

Powered by Google App Engine
This is Rietveld 408576698