| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const std::string& storage_domain, | 38 const std::string& storage_domain, |
| 39 FileSystemContext* file_system_context); | 39 FileSystemContext* file_system_context); |
| 40 | 40 |
| 41 // URLRequestJob methods: | 41 // URLRequestJob methods: |
| 42 void Start() override; | 42 void Start() override; |
| 43 void Kill() override; | 43 void Kill() override; |
| 44 int ReadRawData(net::IOBuffer* buf, int buf_size) override; | 44 int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
| 45 bool IsRedirectResponse(GURL* location, int* http_status_code) override; | 45 bool IsRedirectResponse(GURL* location, int* http_status_code) override; |
| 46 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; | 46 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; |
| 47 void GetResponseInfo(net::HttpResponseInfo* info) override; | 47 void GetResponseInfo(net::HttpResponseInfo* info) override; |
| 48 int GetResponseCode() const override; | |
| 49 | 48 |
| 50 // FilterContext methods (via URLRequestJob): | 49 // FilterContext methods (via URLRequestJob): |
| 51 bool GetMimeType(std::string* mime_type) const override; | 50 bool GetMimeType(std::string* mime_type) const override; |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 class CallbackDispatcher; | 53 class CallbackDispatcher; |
| 55 | 54 |
| 56 ~FileSystemURLRequestJob() override; | 55 ~FileSystemURLRequestJob() override; |
| 57 | 56 |
| 58 void StartAsync(); | 57 void StartAsync(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 71 net::Error range_parse_result_; | 70 net::Error range_parse_result_; |
| 72 net::HttpByteRange byte_range_; | 71 net::HttpByteRange byte_range_; |
| 73 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; | 72 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 74 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace storage | 77 } // namespace storage |
| 79 | 78 |
| 80 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 79 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| OLD | NEW |