OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 | 8 |
9 union PersistentPrefStoreConfiguration { | 9 union PersistentPrefStoreConfiguration { |
10 SimplePersistentPrefStoreConfiguration simple_configuration; | 10 SimplePersistentPrefStoreConfiguration simple_configuration; |
11 }; | 11 }; |
12 | 12 |
13 struct SimplePersistentPrefStoreConfiguration { | 13 struct SimplePersistentPrefStoreConfiguration { |
14 mojo.common.mojom.FilePath pref_filename; | 14 mojo.common.mojom.FilePath pref_filename; |
15 }; | 15 }; |
| 16 |
| 17 struct TrackedPreferenceMetadata { |
| 18 enum EnforcementLevel { NO_ENFORCEMENT, ENFORCE_ON_LOAD }; |
| 19 |
| 20 enum PrefTrackingStrategy { |
| 21 // Atomic preferences are tracked as a whole. |
| 22 ATOMIC, |
| 23 // Split preferences are dictionaries for which each top-level entry is |
| 24 // tracked independently. Note: preferences using this strategy must be kept |
| 25 // in sync with TrackedSplitPreferences in histograms.xml. |
| 26 SPLIT, |
| 27 }; |
| 28 |
| 29 enum ValueType { |
| 30 IMPERSONAL, |
| 31 // The preference value may contain personal information. |
| 32 PERSONAL, |
| 33 }; |
| 34 |
| 35 uint64 reporting_id; |
| 36 string name; |
| 37 EnforcementLevel enforcement_level; |
| 38 PrefTrackingStrategy strategy; |
| 39 ValueType value_type; |
| 40 }; |
OLD | NEW |