OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PREF_HASH_CALCULATOR_H_ | 5 #ifndef SERVICES_PREFERENCES_TRACKED_PREF_HASH_CALCULATOR_H_ |
6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_CALCULATOR_H_ | 6 #define SERVICES_PREFERENCES_TRACKED_PREF_HASH_CALCULATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class Value; | 13 class Value; |
14 } // namespace base | 14 } // namespace base |
15 | 15 |
16 // Calculates and validates preference value hashes. | 16 // Calculates and validates preference value hashes. |
(...skipping 28 matching lines...) Expand all Loading... |
45 const std::string& hash) const; | 45 const std::string& hash) const; |
46 | 46 |
47 private: | 47 private: |
48 const std::string seed_; | 48 const std::string seed_; |
49 const std::string device_id_; | 49 const std::string device_id_; |
50 const std::string legacy_device_id_; | 50 const std::string legacy_device_id_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(PrefHashCalculator); | 52 DISALLOW_COPY_AND_ASSIGN(PrefHashCalculator); |
53 }; | 53 }; |
54 | 54 |
55 #endif // COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_CALCULATOR_H_ | 55 #endif // SERVICES_PREFERENCES_TRACKED_PREF_HASH_CALCULATOR_H_ |
OLD | NEW |