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

Side by Side Diff: services/preferences/public/interfaces/preferences.mojom

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Update comments Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module prefs.mojom; 5 module prefs.mojom;
6 6
7 import "mojo/common/file_path.mojom"; 7 import "mojo/common/file_path.mojom";
8 import "mojo/common/string16.mojom"; 8 import "mojo/common/string16.mojom";
9 import "mojo/common/values.mojom"; 9 import "mojo/common/values.mojom";
10 import "services/preferences/public/interfaces/tracked_preference_validation_del egate.mojom"; 10 import "services/preferences/public/interfaces/tracked_preference_validation_del egate.mojom";
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Requests that the pref service transmits its value for a pref (or sub-pref 130 // Requests that the pref service transmits its value for a pref (or sub-pref
131 // if |sub_pref_path| is non-empty). The value will be transmitted over the 131 // if |sub_pref_path| is non-empty). The value will be transmitted over the
132 // corresponding PrefStoreObserver interface previous returned by 132 // corresponding PrefStoreObserver interface previous returned by
133 // PrefStoreConnector.Connect(). 133 // PrefStoreConnector.Connect().
134 RequestValue(string key, array<string> sub_pref_path); 134 RequestValue(string key, array<string> sub_pref_path);
135 135
136 // These mirror the C++ PersistentPrefStore methods. 136 // These mirror the C++ PersistentPrefStore methods.
137 CommitPendingWrite() => (); 137 CommitPendingWrite() => ();
138 SchedulePendingLossyWrites(); 138 SchedulePendingLossyWrites();
139 ClearMutableValues(); 139 ClearMutableValues();
140 OnStoreDeletionFromDisk();
140 }; 141 };
141 142
142 // A registry of all prefs registered by a single client. 143 // A registry of all prefs registered by a single client.
143 struct PrefRegistry { 144 struct PrefRegistry {
144 // A list of pref keys that are private to this client. This client claims 145 // A list of pref keys that are private to this client. This client claims
145 // exclusive access to these prefs. 146 // exclusive access to these prefs.
146 array<string> private_registrations; 147 array<string> private_registrations;
147 148
148 // A list of pref keys that are public, but owned by another client. 149 // A list of pref keys that are public, but owned by another client.
149 array<string> foreign_registrations; 150 array<string> foreign_registrations;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 uint64 reporting_id; 205 uint64 reporting_id;
205 string name; 206 string name;
206 EnforcementLevel enforcement_level; 207 EnforcementLevel enforcement_level;
207 PrefTrackingStrategy strategy; 208 PrefTrackingStrategy strategy;
208 ValueType value_type; 209 ValueType value_type;
209 }; 210 };
210 211
211 interface ResetOnLoadObserver { 212 interface ResetOnLoadObserver {
212 OnResetOnLoad(); 213 OnResetOnLoad();
213 }; 214 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698