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

Unified Diff: net/url_request/url_request_simple_job.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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
« no previous file with comments | « net/url_request/sdch_dictionary_fetcher_unittest.cc ('k') | net/url_request/url_request_simple_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_simple_job.h
diff --git a/net/url_request/url_request_simple_job.h b/net/url_request/url_request_simple_job.h
index f605fe4e650e8de8b53c686bd3b4192ed3090c7e..4adabc1b5eab51d8d95db7291d676fb5c7573d41 100644
--- a/net/url_request/url_request_simple_job.h
+++ b/net/url_request/url_request_simple_job.h
@@ -57,16 +57,22 @@ class NET_EXPORT URLRequestSimpleJob : public URLRangeRequestJob {
scoped_refptr<base::RefCountedMemory>* data,
const CompletionCallback& callback) const;
+ // Returns the task runner used by ReadRawData. This method is virtual so
+ // that it can be overridden in tests.
+ virtual base::TaskRunner* GetTaskRunner() const;
+
void StartAsync();
private:
void OnGetDataCompleted(int result);
+ void OnReadCompleted(int bytes_read);
HttpByteRange byte_range_;
std::string mime_type_;
std::string charset_;
scoped_refptr<base::RefCountedMemory> data_;
- int64 data_offset_;
+ int64 next_data_offset_;
+ scoped_refptr<base::TaskRunner> task_runner_;
base::WeakPtrFactory<URLRequestSimpleJob> weak_factory_;
};
« no previous file with comments | « net/url_request/sdch_dictionary_fetcher_unittest.cc ('k') | net/url_request/url_request_simple_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698