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

Unified Diff: components/filesystem/public/cpp/prefs/pref_service_factory.h

Issue 1624683002: mash: Add a simple, temporary preferences store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky comments Created 4 years, 11 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: components/filesystem/public/cpp/prefs/pref_service_factory.h
diff --git a/components/filesystem/public/cpp/prefs/pref_service_factory.h b/components/filesystem/public/cpp/prefs/pref_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccf981e27c2b0ce30deb048446ec2aea330413bb
--- /dev/null
+++ b/components/filesystem/public/cpp/prefs/pref_service_factory.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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 COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
+#define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
+
+namespace mojo {
+class ApplicationImpl;
+}
+
+class PrefRegistry;
+
+namespace filesystem {
+
+// This factory method creates a PrefService for the local process based on the
+// preference registry passed in. This PrefService will synchronize with a JSON
+// file in the mojo:filesystem.
+scoped_ptr<PrefService> CreatePrefService(mojo::ApplicationImpl* application,
+ PrefRegistry* registry);
+
+} // namespace filesystem
+
+#endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698