| 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 13 matching lines...) Expand all Loading... |
| 24 #include "components/filesystem/public/interfaces/file_system.mojom.h" | 24 #include "components/filesystem/public/interfaces/file_system.mojom.h" |
| 25 #include "components/filesystem/public/interfaces/types.mojom.h" | 25 #include "components/filesystem/public/interfaces/types.mojom.h" |
| 26 #include "components/prefs/base_prefs_export.h" | 26 #include "components/prefs/base_prefs_export.h" |
| 27 #include "components/prefs/persistent_pref_store.h" | 27 #include "components/prefs/persistent_pref_store.h" |
| 28 #include "components/prefs/pref_filter.h" | 28 #include "components/prefs/pref_filter.h" |
| 29 #include "mojo/public/cpp/bindings/binding.h" | 29 #include "mojo/public/cpp/bindings/binding.h" |
| 30 | 30 |
| 31 class PrefFilter; | 31 class PrefFilter; |
| 32 | 32 |
| 33 namespace base { | 33 namespace base { |
| 34 class Clock; | |
| 35 class DictionaryValue; | 34 class DictionaryValue; |
| 36 class FilePath; | |
| 37 class JsonPrefStoreLossyWriteTest; | 35 class JsonPrefStoreLossyWriteTest; |
| 38 class Value; | 36 class Value; |
| 39 } | 37 } |
| 40 | 38 |
| 41 namespace filesystem { | 39 namespace filesystem { |
| 42 | 40 |
| 43 // A forked, hack'n'slashed copy of base::JsonPrefStore which writes its | 41 // A forked, hack'n'slashed copy of base::JsonPrefStore which writes its |
| 44 // preference data to the mojo filesystem instead of the real | 42 // preference data to the mojo filesystem instead of the real |
| 45 // filesystem. Unlike base::JsonPrefStore, this class can safely be used inside | 43 // filesystem. Unlike base::JsonPrefStore, this class can safely be used inside |
| 46 // a sandboxed process. | 44 // a sandboxed process. |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool filtering_in_progress_; | 169 bool filtering_in_progress_; |
| 172 bool pending_lossy_write_; | 170 bool pending_lossy_write_; |
| 173 PrefReadError read_error_; | 171 PrefReadError read_error_; |
| 174 | 172 |
| 175 DISALLOW_COPY_AND_ASSIGN(FilesystemJsonPrefStore); | 173 DISALLOW_COPY_AND_ASSIGN(FilesystemJsonPrefStore); |
| 176 }; | 174 }; |
| 177 | 175 |
| 178 } // namespace filesystem | 176 } // namespace filesystem |
| 179 | 177 |
| 180 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ | 178 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_FILESYSTEM_JSON_PREF_STORE_H_ |
| OLD | NEW |