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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Contains information about the provided file system instance. | 31 // Contains information about the provided file system instance. |
32 class ProvidedFileSystemInfo { | 32 class ProvidedFileSystemInfo { |
33 public: | 33 public: |
34 ProvidedFileSystemInfo(); | 34 ProvidedFileSystemInfo(); |
35 | 35 |
36 ProvidedFileSystemInfo(const std::string& extension_id, | 36 ProvidedFileSystemInfo(const std::string& extension_id, |
37 const MountOptions& mount_options, | 37 const MountOptions& mount_options, |
38 const base::FilePath& mount_path, | 38 const base::FilePath& mount_path, |
39 bool configurable, | 39 bool configurable, |
| 40 bool watchable, |
40 extensions::FileSystemProviderSource source); | 41 extensions::FileSystemProviderSource source); |
41 | 42 |
42 ~ProvidedFileSystemInfo(); | 43 ~ProvidedFileSystemInfo(); |
43 | 44 |
44 const std::string& extension_id() const { return extension_id_; } | 45 const std::string& extension_id() const { return extension_id_; } |
45 const std::string& file_system_id() const { return file_system_id_; } | 46 const std::string& file_system_id() const { return file_system_id_; } |
46 const std::string& display_name() const { return display_name_; } | 47 const std::string& display_name() const { return display_name_; } |
47 bool writable() const { return writable_; } | 48 bool writable() const { return writable_; } |
48 bool supports_notify_tag() const { return supports_notify_tag_; } | 49 bool supports_notify_tag() const { return supports_notify_tag_; } |
49 int opened_files_limit() const { return opened_files_limit_; } | 50 int opened_files_limit() const { return opened_files_limit_; } |
50 const base::FilePath& mount_path() const { return mount_path_; } | 51 const base::FilePath& mount_path() const { return mount_path_; } |
51 const bool configurable() const { return configurable_; } | 52 const bool configurable() const { return configurable_; } |
| 53 const bool watchable() const { return watchable_; } |
52 extensions::FileSystemProviderSource source() const { return source_; } | 54 extensions::FileSystemProviderSource source() const { return source_; } |
53 | 55 |
54 private: | 56 private: |
55 // ID of the extension providing this file system. | 57 // ID of the extension providing this file system. |
56 std::string extension_id_; | 58 std::string extension_id_; |
57 | 59 |
58 // ID of the file system. | 60 // ID of the file system. |
59 std::string file_system_id_; | 61 std::string file_system_id_; |
60 | 62 |
61 // Name of the file system, can be rendered in the UI. | 63 // Name of the file system, can be rendered in the UI. |
62 std::string display_name_; | 64 std::string display_name_; |
63 | 65 |
64 // Whether the file system is writable or just read-only. | 66 // Whether the file system is writable or just read-only. |
65 bool writable_; | 67 bool writable_; |
66 | 68 |
67 // Supports tags for file/directory change notifications. | 69 // Supports tags for file/directory change notifications. |
68 bool supports_notify_tag_; | 70 bool supports_notify_tag_; |
69 | 71 |
70 // Limit of opened files in parallel. If unlimited, then 0. | 72 // Limit of opened files in parallel. If unlimited, then 0. |
71 int opened_files_limit_; | 73 int opened_files_limit_; |
72 | 74 |
73 // Mount path of the underlying file system. | 75 // Mount path of the underlying file system. |
74 base::FilePath mount_path_; | 76 base::FilePath mount_path_; |
75 | 77 |
76 // Whether the file system is configurable. | 78 // Whether the file system is configurable. |
77 bool configurable_; | 79 bool configurable_; |
78 | 80 |
| 81 // Whether the file system is watchable. |
| 82 bool watchable_; |
| 83 |
79 // Source of the file system's data. | 84 // Source of the file system's data. |
80 extensions::FileSystemProviderSource source_; | 85 extensions::FileSystemProviderSource source_; |
81 }; | 86 }; |
82 | 87 |
83 } // namespace file_system_provider | 88 } // namespace file_system_provider |
84 } // namespace chromeos | 89 } // namespace chromeos |
85 | 90 |
86 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INF
O_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INF
O_H_ |
OLD | NEW |