tracked_persistent_pref_store_factory.h 1008 B

1234567891011121314151617181920212223242526
  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. #ifndef SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
  5. #define SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_
  6. #include "base/task/sequenced_task_runner.h"
  7. #include "services/preferences/public/mojom/preferences.mojom.h"
  8. namespace base {
  9. class DictionaryValue;
  10. }
  11. class PersistentPrefStore;
  12. PersistentPrefStore* CreateTrackedPersistentPrefStore(
  13. prefs::mojom::TrackedPersistentPrefStoreConfigurationPtr config,
  14. scoped_refptr<base::SequencedTaskRunner> io_task_runner);
  15. // TODO(sammc): This should move somewhere more appropriate in the longer term.
  16. void InitializeMasterPrefsTracking(
  17. prefs::mojom::TrackedPersistentPrefStoreConfigurationPtr configuration,
  18. base::DictionaryValue* master_prefs);
  19. #endif // SERVICES_PREFERENCES_TRACKED_TRACKED_PERSISTENT_PREF_STORE_FACTORY_H_