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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 FileSystemDirURLRequestJob( | 27 FileSystemDirURLRequestJob( |
28 net::URLRequest* request, | 28 net::URLRequest* request, |
29 net::NetworkDelegate* network_delegate, | 29 net::NetworkDelegate* network_delegate, |
30 const std::string& storage_domain, | 30 const std::string& storage_domain, |
31 FileSystemContext* file_system_context); | 31 FileSystemContext* file_system_context); |
32 | 32 |
33 // URLRequestJob methods: | 33 // URLRequestJob methods: |
34 void Start() override; | 34 void Start() override; |
35 void Kill() override; | 35 void Kill() override; |
36 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override; | 36 int ReadRawData(net::IOBuffer* buf, int buf_size) override; |
37 bool GetCharset(std::string* charset) override; | 37 bool GetCharset(std::string* charset) override; |
38 | 38 |
39 // FilterContext methods (via URLRequestJob): | 39 // FilterContext methods (via URLRequestJob): |
40 bool GetMimeType(std::string* mime_type) const override; | 40 bool GetMimeType(std::string* mime_type) const override; |
41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate | 41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate |
42 // an HTTP response. | 42 // an HTTP response. |
43 | 43 |
44 private: | 44 private: |
45 class CallbackDispatcher; | 45 class CallbackDispatcher; |
46 | 46 |
(...skipping 10 matching lines...) Expand all Loading... |
57 const std::string storage_domain_; | 57 const std::string storage_domain_; |
58 FileSystemContext* file_system_context_; | 58 FileSystemContext* file_system_context_; |
59 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; | 59 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); | 61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace storage | 64 } // namespace storage |
65 | 65 |
66 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ | 66 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ |
OLD | NEW |