OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_USER_PREFS_IMPL_H_ | |
6 #define SERVICES_PREFERENCES_PUBLIC_CPP_USER_PREFS_IMPL_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/memory/ref_counted.h" | |
12 #include "base/strings/string16.h" | |
13 #include "components/user_prefs/tracked/pref_hash_filter.h" | |
14 #include "services/preferences/public/interfaces/preferences.mojom.h" | |
15 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h" | |
16 | |
17 namespace base { | |
18 class FilePath; | |
19 class SingleThreadTaskRunner; | |
20 class SequencedTaskRunner; | |
21 } | |
22 | |
23 namespace prefs { | |
24 | |
25 // Factory functions for creating backends for user prefs. These are temporary | |
26 // until the Prefs service provides a mojo interface for initializing user | |
27 // prefs. | |
28 // | |
29 // TODO(sammc): Make these implementation details of the prefs service when it | |
30 // exists. | |
31 | |
32 void CreateUserPrefs( | |
tibell
2017/03/08 03:39:54
Both these functions, even if temporary, could use
| |
33 const base::FilePath& pref_filename, | |
34 const scoped_refptr<base::SingleThreadTaskRunner>& connection_task_runner, | |
35 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | |
36 mojom::PersistentPrefStoreConnectorRequest request); | |
37 | |
38 void CreateSegregatedUserPrefs( | |
39 const base::FilePath& unprotected_pref_filename, | |
40 const base::FilePath& protected_pref_filename, | |
41 const std::vector<PrefHashFilter::TrackedPreferenceMetadata>& | |
42 tracking_configuration, | |
43 size_t reporting_ids_count, | |
44 const std::string& seed, | |
45 const std::string& legacy_device_id, | |
46 const base::string16& registry_path, | |
47 mojom::TrackedPreferenceValidationDelegatePtr validation_delegate, | |
48 const base::Closure& on_reset_on_load, | |
49 const scoped_refptr<base::SingleThreadTaskRunner>& connection_task_runner, | |
50 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | |
51 mojom::PersistentPrefStoreConnectorRequest request); | |
52 | |
53 } // namespace prefs | |
54 | |
55 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_USER_PREFS_IMPL_H_ | |
OLD | NEW |