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_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Key names for preferences. | 23 // Key names for preferences. |
24 extern const char kPrefKeyFileSystemId[]; | 24 extern const char kPrefKeyFileSystemId[]; |
25 extern const char kPrefKeyDisplayName[]; | 25 extern const char kPrefKeyDisplayName[]; |
26 extern const char kPrefKeyWritable[]; | 26 extern const char kPrefKeyWritable[]; |
27 extern const char kPrefKeySupportsNotifyTag[]; | 27 extern const char kPrefKeySupportsNotifyTag[]; |
28 extern const char kPrefKeyWatchers[]; | 28 extern const char kPrefKeyWatchers[]; |
29 extern const char kPrefKeyWatcherEntryPath[]; | 29 extern const char kPrefKeyWatcherEntryPath[]; |
30 extern const char kPrefKeyWatcherRecursive[]; | 30 extern const char kPrefKeyWatcherRecursive[]; |
31 extern const char kPrefKeyWatcherPersistentOrigins[]; | 31 extern const char kPrefKeyWatcherPersistentOrigins[]; |
32 extern const char kPrefKeyWatcherLastTag[]; | 32 extern const char kPrefKeyWatcherLastTag[]; |
| 33 extern const char kPrefKeyOpenedFilesLimit[]; |
33 | 34 |
34 class ProvidedFileSystemInfo; | 35 class ProvidedFileSystemInfo; |
35 | 36 |
36 // Registers preferences to remember registered file systems between reboots. | 37 // Registers preferences to remember registered file systems between reboots. |
37 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 38 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
38 | 39 |
39 // Remembers and restores file systems in a persistent storage. | 40 // Remembers and restores file systems in a persistent storage. |
40 class Registry : public RegistryInterface { | 41 class Registry : public RegistryInterface { |
41 public: | 42 public: |
42 explicit Registry(Profile* profile); | 43 explicit Registry(Profile* profile); |
(...skipping 12 matching lines...) Expand all Loading... |
55 | 56 |
56 private: | 57 private: |
57 Profile* profile_; // Not owned. | 58 Profile* profile_; // Not owned. |
58 DISALLOW_COPY_AND_ASSIGN(Registry); | 59 DISALLOW_COPY_AND_ASSIGN(Registry); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace file_system_provider | 62 } // namespace file_system_provider |
62 } // namespace chromeos | 63 } // namespace chromeos |
63 | 64 |
64 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ | 65 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ |
OLD | NEW |