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_INTERF
ACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ |
7 | 7 |
8 #include "webkit/browser/fileapi/async_file_util.h" | 8 #include "webkit/browser/fileapi/async_file_util.h" |
9 | 9 |
10 class EventRouter; | 10 class EventRouter; |
(...skipping 13 matching lines...) Expand all Loading... |
24 // TODO(mtomasz): Add more methods once implemented. | 24 // TODO(mtomasz): Add more methods once implemented. |
25 class ProvidedFileSystemInterface { | 25 class ProvidedFileSystemInterface { |
26 public: | 26 public: |
27 virtual ~ProvidedFileSystemInterface() {} | 27 virtual ~ProvidedFileSystemInterface() {} |
28 | 28 |
29 // Requests unmounting of the file system. The callback is called when the | 29 // Requests unmounting of the file system. The callback is called when the |
30 // request is accepted or rejected, with an error code. | 30 // request is accepted or rejected, with an error code. |
31 virtual void RequestUnmount( | 31 virtual void RequestUnmount( |
32 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; | 32 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
33 | 33 |
| 34 // Requests metadata of the passed |entry_path|. It can be either a file |
| 35 // or a directory. |
| 36 virtual void GetMetadata( |
| 37 const base::FilePath& entry_path, |
| 38 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) = 0; |
| 39 |
34 // Returns a provided file system info for this file system. | 40 // Returns a provided file system info for this file system. |
35 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; | 41 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; |
36 | 42 |
37 // Returns a request manager for the file system. | 43 // Returns a request manager for the file system. |
38 virtual RequestManager* GetRequestManager() = 0; | 44 virtual RequestManager* GetRequestManager() = 0; |
39 }; | 45 }; |
40 | 46 |
41 } // namespace file_system_provider | 47 } // namespace file_system_provider |
42 } // namespace chromeos | 48 } // namespace chromeos |
43 | 49 |
44 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ |
OLD | NEW |