| 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_BLOB_BLOB_URL_REQUEST_JOB_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ | 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 public: | 37 public: |
| 38 BlobURLRequestJob(net::URLRequest* request, | 38 BlobURLRequestJob(net::URLRequest* request, |
| 39 net::NetworkDelegate* network_delegate, | 39 net::NetworkDelegate* network_delegate, |
| 40 BlobDataHandle* blob_handle, | 40 BlobDataHandle* blob_handle, |
| 41 storage::FileSystemContext* file_system_context, | 41 storage::FileSystemContext* file_system_context, |
| 42 base::SingleThreadTaskRunner* resolving_thread_task_runner); | 42 base::SingleThreadTaskRunner* resolving_thread_task_runner); |
| 43 | 43 |
| 44 // net::URLRequestJob methods. | 44 // net::URLRequestJob methods. |
| 45 void Start() override; | 45 void Start() override; |
| 46 void Kill() override; | 46 void Kill() override; |
| 47 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; | 47 int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
| 48 bool GetMimeType(std::string* mime_type) const override; | 48 bool GetMimeType(std::string* mime_type) const override; |
| 49 void GetResponseInfo(net::HttpResponseInfo* info) override; | 49 void GetResponseInfo(net::HttpResponseInfo* info) override; |
| 50 int GetResponseCode() const override; | 50 int GetResponseCode() const override; |
| 51 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; | 51 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override; |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 ~BlobURLRequestJob() override; | 54 ~BlobURLRequestJob() override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap; | 57 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 75 scoped_ptr<net::HttpResponseInfo> response_info_; | 75 scoped_ptr<net::HttpResponseInfo> response_info_; |
| 76 | 76 |
| 77 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_; | 77 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); | 79 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace storage | 82 } // namespace storage |
| 83 | 83 |
| 84 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ | 84 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ |
| OLD | NEW |