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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 namespace storage { | 25 namespace storage { |
26 class FileStreamReader; | 26 class FileStreamReader; |
27 } | 27 } |
28 | 28 |
29 namespace storage { | 29 namespace storage { |
30 class FileSystemContext; | 30 class FileSystemContext; |
31 | 31 |
32 // A request job that handles reading filesystem: URLs | 32 // A request job that handles reading filesystem: URLs |
33 class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob | 33 class STORAGE_EXPORT FileSystemURLRequestJob : public net::URLRequestJob { |
34 : public net::URLRequestJob { | |
35 public: | 34 public: |
36 FileSystemURLRequestJob( | 35 FileSystemURLRequestJob( |
37 net::URLRequest* request, | 36 net::URLRequest* request, |
38 net::NetworkDelegate* network_delegate, | 37 net::NetworkDelegate* network_delegate, |
39 const std::string& storage_domain, | 38 const std::string& storage_domain, |
40 FileSystemContext* file_system_context); | 39 FileSystemContext* file_system_context); |
41 | 40 |
42 // URLRequestJob methods: | 41 // URLRequestJob methods: |
43 void Start() override; | 42 void Start() override; |
44 void Kill() override; | 43 void Kill() override; |
(...skipping 27 matching lines...) Expand all Loading... |
72 int64 remaining_bytes_; | 71 int64 remaining_bytes_; |
73 net::HttpByteRange byte_range_; | 72 net::HttpByteRange byte_range_; |
74 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; | 73 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; |
75 | 74 |
76 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 75 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
77 }; | 76 }; |
78 | 77 |
79 } // namespace storage | 78 } // namespace storage |
80 | 79 |
81 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 80 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
OLD | NEW |