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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // ProvidedFileSystemInterface overrides. | 32 // ProvidedFileSystemInterface overrides. |
33 virtual void RequestUnmount( | 33 virtual void RequestUnmount( |
34 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 34 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
35 virtual void GetMetadata( | 35 virtual void GetMetadata( |
36 const base::FilePath& entry_path, | 36 const base::FilePath& entry_path, |
37 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE; | 37 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE; |
38 virtual void ReadDirectory( | 38 virtual void ReadDirectory( |
39 const base::FilePath& directory_path, | 39 const base::FilePath& directory_path, |
40 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 40 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
41 virtual void OpenFile( | 41 virtual void OpenFile(const base::FilePath& file_path, |
42 const base::FilePath& file_path, | 42 OpenFileMode mode, |
43 OpenFileMode mode, | 43 bool create, |
44 bool create, | 44 const OpenFileCallback& callback) OVERRIDE; |
| 45 virtual void CloseFile( |
| 46 int file_handle, |
45 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 47 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
46 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; | 48 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
47 virtual RequestManager* GetRequestManager() OVERRIDE; | 49 virtual RequestManager* GetRequestManager() OVERRIDE; |
48 | 50 |
49 private: | 51 private: |
50 extensions::EventRouter* event_router_; | 52 extensions::EventRouter* event_router_; |
51 RequestManager request_manager_; | 53 RequestManager request_manager_; |
52 ProvidedFileSystemInfo file_system_info_; | 54 ProvidedFileSystemInfo file_system_info_; |
53 | 55 |
54 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 56 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
55 }; | 57 }; |
56 | 58 |
57 } // namespace file_system_provider | 59 } // namespace file_system_provider |
58 } // namespace chromeos | 60 } // namespace chromeos |
59 | 61 |
60 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
OLD | NEW |