| 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 CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
| 6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ | 6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Constructs a TrackedSplitPreference. |pref_path| must be a dictionary pref. | 24 // Constructs a TrackedSplitPreference. |pref_path| must be a dictionary pref. |
| 25 TrackedSplitPreference( | 25 TrackedSplitPreference( |
| 26 const std::string& pref_path, | 26 const std::string& pref_path, |
| 27 size_t reporting_id, | 27 size_t reporting_id, |
| 28 size_t reporting_ids_count, | 28 size_t reporting_ids_count, |
| 29 PrefHashFilter::EnforcementLevel enforcement_level, | 29 PrefHashFilter::EnforcementLevel enforcement_level, |
| 30 PrefHashStore* pref_hash_store); | 30 PrefHashStore* pref_hash_store); |
| 31 | 31 |
| 32 // TrackedPreference implementation. | 32 // TrackedPreference implementation. |
| 33 virtual void OnNewValue(const base::Value* value) const OVERRIDE; | 33 virtual void OnNewValue(const base::Value* value) const OVERRIDE; |
| 34 virtual void EnforceAndReport( | 34 virtual bool EnforceAndReport( |
| 35 base::DictionaryValue* pref_store_contents) const OVERRIDE; | 35 base::DictionaryValue* pref_store_contents) const OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 const std::string pref_path_; | 38 const std::string pref_path_; |
| 39 const TrackedPreferenceHelper helper_; | 39 const TrackedPreferenceHelper helper_; |
| 40 PrefHashStore* pref_hash_store_; | 40 PrefHashStore* pref_hash_store_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); | 42 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ | 45 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ |
| OLD | NEW |