OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
10 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 10 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
11 #include "webkit/browser/fileapi/async_file_util.h" | 11 #include "webkit/browser/fileapi/async_file_util.h" |
12 | 12 |
| 13 namespace net { |
| 14 class IOBuffer; |
| 15 } // namespace net |
| 16 |
13 namespace base { | 17 namespace base { |
14 class FilePath; | 18 class FilePath; |
15 } // namespace base | 19 } // namespace base |
16 | 20 |
17 namespace extensions { | 21 namespace extensions { |
18 class EventRouter; | 22 class EventRouter; |
19 } // namespace extensions | 23 } // namespace extensions |
20 | 24 |
21 namespace chromeos { | 25 namespace chromeos { |
22 namespace file_system_provider { | 26 namespace file_system_provider { |
(...skipping 15 matching lines...) Expand all Loading... |
38 virtual void ReadDirectory( | 42 virtual void ReadDirectory( |
39 const base::FilePath& directory_path, | 43 const base::FilePath& directory_path, |
40 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 44 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
41 virtual void OpenFile(const base::FilePath& file_path, | 45 virtual void OpenFile(const base::FilePath& file_path, |
42 OpenFileMode mode, | 46 OpenFileMode mode, |
43 bool create, | 47 bool create, |
44 const OpenFileCallback& callback) OVERRIDE; | 48 const OpenFileCallback& callback) OVERRIDE; |
45 virtual void CloseFile( | 49 virtual void CloseFile( |
46 int file_handle, | 50 int file_handle, |
47 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 51 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| 52 virtual void ReadFile(int file_handle, |
| 53 net::IOBuffer* buffer, |
| 54 int64 offset, |
| 55 int length, |
| 56 const ReadChunkReceivedCallback& callback) OVERRIDE; |
48 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; | 57 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
49 virtual RequestManager* GetRequestManager() OVERRIDE; | 58 virtual RequestManager* GetRequestManager() OVERRIDE; |
50 | 59 |
51 private: | 60 private: |
52 extensions::EventRouter* event_router_; | 61 extensions::EventRouter* event_router_; |
53 RequestManager request_manager_; | 62 RequestManager request_manager_; |
54 ProvidedFileSystemInfo file_system_info_; | 63 ProvidedFileSystemInfo file_system_info_; |
55 | 64 |
56 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 65 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
57 }; | 66 }; |
58 | 67 |
59 } // namespace file_system_provider | 68 } // namespace file_system_provider |
60 } // namespace chromeos | 69 } // namespace chromeos |
61 | 70 |
62 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
OLD | NEW |