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

Unified Diff: net/url_request/url_request_file_job.h

Issue 2373003003: Switch to use net::FilterSourceStream from net::Filter (Closed)
Patch Set: rebased onto sdch fix Created 4 years, 2 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/filter/sdch_policy_delegate.cc ('k') | net/url_request/url_request_file_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_file_job.h
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h
index 90d6bbbe3c1e1902c7b12d74177d147bce852ec0..f5697fc0233285092913f8c7c2a8625b1a326065 100644
--- a/net/url_request/url_request_file_job.h
+++ b/net/url_request/url_request_file_job.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -44,7 +45,6 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
void Kill() override;
int ReadRawData(IOBuffer* buf, int buf_size) override;
bool IsRedirectResponse(GURL* location, int* http_status_code) override;
- std::unique_ptr<Filter> SetupFilter() const override;
bool GetMimeType(std::string* mime_type) const override;
void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override;
@@ -55,6 +55,9 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
protected:
~URLRequestFileJob() override;
+ // URLRequestJob implementation.
+ std::unique_ptr<SourceStream> SetUpSourceStream() override;
+
int64_t remaining_bytes() const { return remaining_bytes_; }
// The OS-specific full path name of the file
« no previous file with comments | « net/filter/sdch_policy_delegate.cc ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698