Chromium Code Reviews| Index: storage/browser/fileapi/file_system_url_request_job.h |
| diff --git a/storage/browser/fileapi/file_system_url_request_job.h b/storage/browser/fileapi/file_system_url_request_job.h |
| index 00212102757922f95a02b5571babd1cda1070625..5beebd66a64bacb4630e10ecf58632d625a9d96b 100644 |
| --- a/storage/browser/fileapi/file_system_url_request_job.h |
| +++ b/storage/browser/fileapi/file_system_url_request_job.h |
| @@ -11,6 +11,7 @@ |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/memory/weak_ptr.h" |
| +#include "net/base/net_errors.h" |
| #include "net/http/http_byte_range.h" |
| #include "net/url_request/url_request_job.h" |
| #include "storage/browser/fileapi/file_system_url.h" |
| @@ -42,7 +43,7 @@ class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob |
| // URLRequestJob methods: |
| void Start() override; |
| void Kill() override; |
| - bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; |
| + int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
| bool IsRedirectResponse(GURL* location, int* http_status_code) override; |
| void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; |
| void GetResponseInfo(net::HttpResponseInfo* info) override; |
| @@ -61,7 +62,6 @@ class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob |
| void DidGetMetadata(base::File::Error error_code, |
| const base::File::Info& file_info); |
| void DidRead(int result); |
| - void NotifyFailed(int rv); |
| const std::string storage_domain_; |
| FileSystemContext* file_system_context_; |
| @@ -70,6 +70,8 @@ class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob |
| bool is_directory_; |
| scoped_ptr<net::HttpResponseInfo> response_info_; |
| int64 remaining_bytes_; |
| + net::Error range_parse_result_; |
| + std::vector<net::HttpByteRange> byte_ranges_; |
|
michaeln
2015/11/06 00:17:10
lgtm % is byte_ranges_ used anywhere?
xunjieli
2015/11/06 14:30:03
Done.
|
| net::HttpByteRange byte_range_; |
| base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; |