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

Side by Side Diff: components/prefs/pref_member.h

Issue 1653693002: Move base/prefs to components/prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS fix Created 4 years, 10 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
« no previous file with comments | « components/prefs/pref_filter.h ('k') | components/prefs/pref_member.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A helper class that stays in sync with a preference (bool, int, real, 5 // A helper class that stays in sync with a preference (bool, int, real,
6 // string or filepath). For example: 6 // string or filepath). For example:
7 // 7 //
8 // class MyClass { 8 // class MyClass {
9 // public: 9 // public:
10 // MyClass(PrefService* prefs) { 10 // MyClass(PrefService* prefs) {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 typedef PrefMember<bool> BooleanPrefMember; 347 typedef PrefMember<bool> BooleanPrefMember;
348 typedef PrefMember<int> IntegerPrefMember; 348 typedef PrefMember<int> IntegerPrefMember;
349 typedef PrefMember<double> DoublePrefMember; 349 typedef PrefMember<double> DoublePrefMember;
350 typedef PrefMember<std::string> StringPrefMember; 350 typedef PrefMember<std::string> StringPrefMember;
351 typedef PrefMember<base::FilePath> FilePathPrefMember; 351 typedef PrefMember<base::FilePath> FilePathPrefMember;
352 // This preference member is expensive for large string arrays. 352 // This preference member is expensive for large string arrays.
353 typedef PrefMember<std::vector<std::string> > StringListPrefMember; 353 typedef PrefMember<std::vector<std::string> > StringListPrefMember;
354 354
355 #endif // BASE_PREFS_PREF_MEMBER_H_ 355 #endif // BASE_PREFS_PREF_MEMBER_H_
OLDNEW
« no previous file with comments | « components/prefs/pref_filter.h ('k') | components/prefs/pref_member.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698