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

Unified Diff: services/preferences/public/cpp/tracked_persistent_pref_store_factory.h

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: around go the deps Created 3 years, 9 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/public/cpp/tracked_persistent_pref_store_factory.h
diff --git a/services/preferences/public/cpp/tracked_persistent_pref_store_factory.h b/services/preferences/public/cpp/tracked_persistent_pref_store_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8b4f31334131a24110bfd887a76f95fd2b0dd43
--- /dev/null
+++ b/services/preferences/public/cpp/tracked_persistent_pref_store_factory.h
@@ -0,0 +1,33 @@
+// 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_PUBLIC_CPP_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
+#define SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
+
+#include <memory>
+#include <string>
+#include <vector>
+
+#include "base/strings/string16.h"
+#include "components/user_prefs/tracked/pref_hash_filter.h"
+#include "services/preferences/public/interfaces/preferences.mojom.h"
+
+namespace prefs {
+
+::PersistentPrefStore* CreateTrackedPersistentPrefStore(
+ scoped_refptr<base::SequencedTaskRunner> io_task_runner,
+ const base::FilePath& unprotected_pref_filename,
+ const base::FilePath& protected_pref_filename,
+ const std::vector<PrefHashFilter::TrackedPreferenceMetadata>&
+ tracking_configuration,
+ uint64_t reporting_ids_count,
+ const std::string& seed,
+ const std::string& legacy_device_id,
+ const base::string16& registry_path,
+ mojom::TrackedPreferenceValidationDelegate* validation_delegate,
+ const base::Closure& on_reset_on_load);
+
+} // namespace prefs
+
+#endif // SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698