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

Side by Side Diff: components/user_prefs/tracked/pref_service_hash_store_contents.h

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 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_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/prefs/tracked/hash_store_contents.h" 12 #include "components/user_prefs/tracked/hash_store_contents.h"
13 13
14 class PrefRegistrySimple; 14 class PrefRegistrySimple;
15 class PrefService; 15 class PrefService;
16 16
17 // Implements HashStoreContents by storing hashes in a PrefService. Multiple 17 // Implements HashStoreContents by storing hashes in a PrefService. Multiple
18 // separate hash stores may coexist in the PrefService by using distinct hash 18 // separate hash stores may coexist in the PrefService by using distinct hash
19 // store IDs. 19 // store IDs.
20 // TODO(erikwright): This class is only used to recreate preference state as in 20 // TODO(erikwright): This class is only used to recreate preference state as in
21 // M35, to test migration behaviour. Remove this class when 21 // M35, to test migration behaviour. Remove this class when
22 // ProfilePrefStoreManagerTest no longer depends on it. 22 // ProfilePrefStoreManagerTest no longer depends on it.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 std::string GetSuperMac() const override; 62 std::string GetSuperMac() const override;
63 void SetSuperMac(const std::string& super_mac) override; 63 void SetSuperMac(const std::string& super_mac) override;
64 64
65 private: 65 private:
66 const std::string hash_store_id_; 66 const std::string hash_store_id_;
67 PrefService* pref_service_; 67 PrefService* pref_service_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); 69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents);
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 72 #endif // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
OLDNEW
« no previous file with comments | « components/user_prefs/tracked/pref_names.cc ('k') | components/user_prefs/tracked/pref_service_hash_store_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698