Chromium Code Reviews| Index: net/url_request/url_request_file_dir_job.h |
| diff --git a/net/url_request/url_request_file_dir_job.h b/net/url_request/url_request_file_dir_job.h |
| index dfb2d746dc46472cdf8c91d1d928006af51e5d93..406be6b9eeb2aa417c2a83bbc0eb798980bd3d35 100644 |
| --- a/net/url_request/url_request_file_dir_job.h |
| +++ b/net/url_request/url_request_file_dir_job.h |
| @@ -29,7 +29,7 @@ class URLRequestFileDirJob |
| // Overridden from URLRequestJob: |
| void Start() override; |
| void Kill() override; |
| - bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; |
| + int ReadRawData(IOBuffer* buf, int buf_size) override; |
| bool GetMimeType(std::string* mime_type) const override; |
| bool GetCharset(std::string* charset) override; |
| @@ -45,10 +45,10 @@ class URLRequestFileDirJob |
| // When we have data and a read has been pending, this function |
| // will fill the response buffer and notify the request |
| // appropriately. |
| - void CompleteRead(); |
| + void CompleteRead(Error error); |
|
mmenke
2015/10/27 19:41:07
include net/base/net_errors.h
xunjieli
2015/10/27 21:24:07
Done.
|
| // Fills a buffer with the output. |
| - bool FillReadBuffer(char *buf, int buf_size, int *bytes_read); |
| + bool FillReadBuffer(char* buf, int buf_size, int* bytes_read); |
| DirectoryLister lister_; |
| base::FilePath dir_path_; |
| @@ -67,6 +67,7 @@ class URLRequestFileDirJob |
| bool read_pending_; |
| scoped_refptr<IOBuffer> read_buffer_; |
| int read_buffer_length_; |
| + |
| base::WeakPtrFactory<URLRequestFileDirJob> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(URLRequestFileDirJob); |