OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ |
6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "components/user_prefs/tracked/pref_hash_filter.h" | 13 #include "components/user_prefs/tracked/pref_hash_filter.h" |
12 #include "components/user_prefs/tracked/pref_hash_store_transaction.h" | 14 #include "components/user_prefs/tracked/pref_hash_store_transaction.h" |
13 | 15 |
14 // A TrackedPreferenceHelper is a helper class for TrackedPreference which | 16 // A TrackedPreferenceHelper is a helper class for TrackedPreference which |
15 // handles decision making and reporting for TrackedPreference's | 17 // handles decision making and reporting for TrackedPreference's |
16 // implementations. | 18 // implementations. |
17 class TrackedPreferenceHelper { | 19 class TrackedPreferenceHelper { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 60 |
59 // Deny setting changes and hash seeding/migration. | 61 // Deny setting changes and hash seeding/migration. |
60 const bool enforce_; | 62 const bool enforce_; |
61 | 63 |
62 const bool personal_; | 64 const bool personal_; |
63 | 65 |
64 DISALLOW_COPY_AND_ASSIGN(TrackedPreferenceHelper); | 66 DISALLOW_COPY_AND_ASSIGN(TrackedPreferenceHelper); |
65 }; | 67 }; |
66 | 68 |
67 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ | 69 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ |
OLD | NEW |