| Index: services/preferences/public/interfaces/preferences.mojom
|
| diff --git a/services/preferences/public/interfaces/preferences.mojom b/services/preferences/public/interfaces/preferences.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bf8d186bfea59db06e7f86cfb37a073846e2c366
|
| --- /dev/null
|
| +++ b/services/preferences/public/interfaces/preferences.mojom
|
| @@ -0,0 +1,20 @@
|
| +// 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.
|
| +
|
| +module prefs.mojom;
|
| +
|
| +import "mojo/common/common_custom_types.mojom";
|
| +
|
| +// Used to subscribe to preference changes within PreferenceManager. After
|
| +// requesting to observe, the current values for all requested keys are sent.
|
| +interface PreferencesObserver {
|
| + OnPreferencesChanged(mojo.common.mojom.DictionaryValue preferences);
|
| +};
|
| +
|
| +// Manages actual read/write of preference data. Accepts observers who subscribe
|
| +// to preferences, notifying them of changes.
|
| +interface PreferencesManager {
|
| + AddObserver(array<string> preferences, PreferencesObserver client);
|
| + SetPreferences(mojo.common.mojom.DictionaryValue preferences);
|
| +};
|
|
|