| 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..4c31e4b76f753e580f731fbe84be2ea5b0beea3f
|
| --- /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 PreferenceObserver {
|
| + OnPreferencesChanged(mojo.common.mojom.DictionaryValue preferences);
|
| +};
|
| +
|
| +// Manages actual read/write of preference data. Accepts observers who subscribe
|
| +// to preferences, notifying them of changes.
|
| +interface PreferenceManager {
|
| + AddObserver(array<string> preferences, PreferenceObserver client);
|
| + SetPreferences(mojo.common.mojom.DictionaryValue preferences);
|
| +};
|
|
|