Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: services/preferences/tracked/tracked_persistent_pref_store_factory.h

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: deflake tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/preferences/tracked/tracked_persistent_pref_store_factory.h
diff --git a/services/preferences/tracked/tracked_persistent_pref_store_factory.h b/services/preferences/tracked/tracked_persistent_pref_store_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..fb426bab47db4e8453b68801ba6aa2b84dc6834e
--- /dev/null
+++ b/services/preferences/tracked/tracked_persistent_pref_store_factory.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
+#define SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
+
+#include <utility>
+#include "services/preferences/public/interfaces/preferences_configuration.mojom.h"
+
+namespace base {
+class DictionaryValue;
+class SequencedWorkerPool;
+}
+
+class PersistentPrefStore;
+
+PersistentPrefStore* CreateTrackedPersistentPrefStore(
+ prefs::mojom::TrackedPersistentPrefStoreConfigurationPtr config,
+ base::SequencedWorkerPool* worker_pool);
+
+// TODO(sammc): This should move somewhere more appropriate in the longer term.
+void InitializeMasterPrefsTracking(
+ prefs::mojom::TrackedPersistentPrefStoreConfigurationPtr configuration,
+ base::DictionaryValue* master_prefs);
+
+#endif // SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698