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_DIR_URL_REQUEST_JOB_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ |
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 FileSystemDirURLRequestJob( | 26 FileSystemDirURLRequestJob( |
27 net::URLRequest* request, | 27 net::URLRequest* request, |
28 net::NetworkDelegate* network_delegate, | 28 net::NetworkDelegate* network_delegate, |
29 const std::string& storage_domain, | 29 const std::string& storage_domain, |
30 FileSystemContext* file_system_context); | 30 FileSystemContext* file_system_context); |
31 | 31 |
32 // URLRequestJob methods: | 32 // URLRequestJob methods: |
33 void Start() override; | 33 void Start() override; |
34 void Kill() override; | 34 void Kill() override; |
35 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; | 35 int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
36 bool GetCharset(std::string* charset) override; | 36 bool GetCharset(std::string* charset) override; |
37 | 37 |
38 // FilterContext methods (via URLRequestJob): | 38 // FilterContext methods (via URLRequestJob): |
39 bool GetMimeType(std::string* mime_type) const override; | 39 bool GetMimeType(std::string* mime_type) const override; |
40 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate | 40 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate |
41 // an HTTP response. | 41 // an HTTP response. |
42 | 42 |
43 private: | 43 private: |
44 class CallbackDispatcher; | 44 class CallbackDispatcher; |
45 | 45 |
(...skipping 18 matching lines...) Expand all Loading... |
64 const std::string storage_domain_; | 64 const std::string storage_domain_; |
65 FileSystemContext* file_system_context_; | 65 FileSystemContext* file_system_context_; |
66 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; | 66 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); | 68 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace storage | 71 } // namespace storage |
72 | 72 |
73 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ | 73 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ |
OLD | NEW |