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

Side by Side Diff: components/pref_registry/pref_registry_syncable.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ 5 #ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_
6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ 6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 PrefSyncStatus sync_status); 107 PrefSyncStatus sync_status);
108 void RegisterUint64Pref(const char* path, 108 void RegisterUint64Pref(const char* path,
109 uint64 default_value, 109 uint64 default_value,
110 PrefSyncStatus sync_status); 110 PrefSyncStatus sync_status);
111 111
112 // Returns a new PrefRegistrySyncable that uses the same defaults 112 // Returns a new PrefRegistrySyncable that uses the same defaults
113 // store. 113 // store.
114 scoped_refptr<PrefRegistrySyncable> ForkForIncognito(); 114 scoped_refptr<PrefRegistrySyncable> ForkForIncognito();
115 115
116 private: 116 private:
117 virtual ~PrefRegistrySyncable(); 117 ~PrefRegistrySyncable() override;
118 118
119 void RegisterSyncablePreference(const char* path, 119 void RegisterSyncablePreference(const char* path,
120 base::Value* default_value, 120 base::Value* default_value,
121 PrefSyncStatus sync_status); 121 PrefSyncStatus sync_status);
122 122
123 SyncableRegistrationCallback callback_; 123 SyncableRegistrationCallback callback_;
124 124
125 // Contains the names of all registered preferences that are syncable. 125 // Contains the names of all registered preferences that are syncable.
126 PrefToStatus syncable_preferences_; 126 PrefToStatus syncable_preferences_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); 128 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable);
129 }; 129 };
130 130
131 } // namespace user_prefs 131 } // namespace user_prefs
132 132
133 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ 133 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_
OLDNEW
« no previous file with comments | « components/precache/core/precache_fetcher_unittest.cc ('k') | components/pref_registry/testing_pref_service_syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698