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_INFO_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INFO_H
_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INFO_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INFO_H
_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 namespace file_system_provider { | 13 namespace file_system_provider { |
14 | 14 |
15 // Contains information about the provided file system instance. | 15 // Contains information about the provided file system instance. |
16 class ProvidedFileSystemInfo { | 16 class ProvidedFileSystemInfo { |
17 public: | 17 public: |
18 ProvidedFileSystemInfo(); | 18 ProvidedFileSystemInfo(); |
19 ProvidedFileSystemInfo(const std::string& extension_id, | 19 ProvidedFileSystemInfo(const std::string& extension_id, |
20 const std::string& file_system_id, | 20 const std::string& file_system_id, |
21 const std::string& display_name, | 21 const std::string& display_name, |
22 const bool writable, | 22 bool writable, |
| 23 bool supports_notify_tag, |
23 const base::FilePath& mount_path); | 24 const base::FilePath& mount_path); |
24 | 25 |
25 ~ProvidedFileSystemInfo(); | 26 ~ProvidedFileSystemInfo(); |
26 | 27 |
27 const std::string& extension_id() const { return extension_id_; } | 28 const std::string& extension_id() const { return extension_id_; } |
28 const std::string& file_system_id() const { return file_system_id_; } | 29 const std::string& file_system_id() const { return file_system_id_; } |
29 const std::string& display_name() const { return display_name_; } | 30 const std::string& display_name() const { return display_name_; } |
30 bool writable() const { return writable_; } | 31 bool writable() const { return writable_; } |
| 32 bool supports_notify_tag() const { return supports_notify_tag_; } |
31 const base::FilePath& mount_path() const { return mount_path_; } | 33 const base::FilePath& mount_path() const { return mount_path_; } |
32 | 34 |
33 private: | 35 private: |
34 // ID of the extension providing this file system. | 36 // ID of the extension providing this file system. |
35 std::string extension_id_; | 37 std::string extension_id_; |
36 | 38 |
37 // ID of the file system. | 39 // ID of the file system. |
38 std::string file_system_id_; | 40 std::string file_system_id_; |
39 | 41 |
40 // Name of the file system, can be rendered in the UI. | 42 // Name of the file system, can be rendered in the UI. |
41 std::string display_name_; | 43 std::string display_name_; |
42 | 44 |
43 // Whether the file system is writable or just read-only. | 45 // Whether the file system is writable or just read-only. |
44 bool writable_; | 46 bool writable_; |
45 | 47 |
| 48 // Supports tags for file/directory change notifications. |
| 49 bool supports_notify_tag_; |
| 50 |
46 // Mount path of the underlying file system. | 51 // Mount path of the underlying file system. |
47 base::FilePath mount_path_; | 52 base::FilePath mount_path_; |
48 }; | 53 }; |
49 | 54 |
50 } // namespace file_system_provider | 55 } // namespace file_system_provider |
51 } // namespace chromeos | 56 } // namespace chromeos |
52 | 57 |
53 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INF
O_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INF
O_H_ |
OLD | NEW |