OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ |
6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ | 6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 public: | 59 public: |
60 struct ReadResult; | 60 struct ReadResult; |
61 | 61 |
62 FilesystemJsonPrefStore(const std::string& pref_filename, | 62 FilesystemJsonPrefStore(const std::string& pref_filename, |
63 filesystem::mojom::FileSystemPtr filesystem, | 63 filesystem::mojom::FileSystemPtr filesystem, |
64 std::unique_ptr<PrefFilter> pref_filter); | 64 std::unique_ptr<PrefFilter> pref_filter); |
65 | 65 |
66 // PrefStore overrides: | 66 // PrefStore overrides: |
67 bool GetValue(const std::string& key, | 67 bool GetValue(const std::string& key, |
68 const base::Value** result) const override; | 68 const base::Value** result) const override; |
| 69 std::unique_ptr<base::DictionaryValue> GetValues() const override; |
69 void AddObserver(PrefStore::Observer* observer) override; | 70 void AddObserver(PrefStore::Observer* observer) override; |
70 void RemoveObserver(PrefStore::Observer* observer) override; | 71 void RemoveObserver(PrefStore::Observer* observer) override; |
71 bool HasObservers() const override; | 72 bool HasObservers() const override; |
72 bool IsInitializationComplete() const override; | 73 bool IsInitializationComplete() const override; |
73 | 74 |
74 // PersistentPrefStore overrides: | 75 // PersistentPrefStore overrides: |
75 bool GetMutableValue(const std::string& key, base::Value** result) override; | 76 bool GetMutableValue(const std::string& key, base::Value** result) override; |
76 void SetValue(const std::string& key, | 77 void SetValue(const std::string& key, |
77 std::unique_ptr<base::Value> value, | 78 std::unique_ptr<base::Value> value, |
78 uint32_t flags) override; | 79 uint32_t flags) override; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 bool filtering_in_progress_; | 170 bool filtering_in_progress_; |
170 bool pending_lossy_write_; | 171 bool pending_lossy_write_; |
171 PrefReadError read_error_; | 172 PrefReadError read_error_; |
172 | 173 |
173 DISALLOW_COPY_AND_ASSIGN(FilesystemJsonPrefStore); | 174 DISALLOW_COPY_AND_ASSIGN(FilesystemJsonPrefStore); |
174 }; | 175 }; |
175 | 176 |
176 } // namespace filesystem | 177 } // namespace filesystem |
177 | 178 |
178 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ | 179 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ |
OLD | NEW |