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

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

Issue 16797003: Make base use the proper Value namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwarnings fixed Created 7 years, 6 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 | Annotate | Revision Log
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // FEATURES="noclean nostrip" USE="-chrome_debug -chrome_remoting 292 // FEATURES="noclean nostrip" USE="-chrome_debug -chrome_remoting
293 // -chrome_internal -chrome_pdf component_build" 293 // -chrome_internal -chrome_pdf component_build"
294 // ~/trunk/goma/goma-wrapper cros_chrome_make --board=${BOARD} 294 // ~/trunk/goma/goma-wrapper cros_chrome_make --board=${BOARD}
295 // --install --runhooks 295 // --install --runhooks
296 296
297 template <> 297 template <>
298 BASE_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value); 298 BASE_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value);
299 299
300 template <> 300 template <>
301 BASE_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal( 301 BASE_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal(
302 const Value& value) const; 302 const base::Value& value) const;
303 303
304 template <> 304 template <>
305 BASE_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value); 305 BASE_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value);
306 306
307 template <> 307 template <>
308 BASE_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal( 308 BASE_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal(
309 const Value& value) const; 309 const base::Value& value) const;
310 310
311 template <> 311 template <>
312 BASE_PREFS_EXPORT void PrefMember<double>::UpdatePref(const double& value); 312 BASE_PREFS_EXPORT void PrefMember<double>::UpdatePref(const double& value);
313 313
314 template <> 314 template <>
315 BASE_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal( 315 BASE_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal(
316 const Value& value) const; 316 const base::Value& value) const;
317 317
318 template <> 318 template <>
319 BASE_PREFS_EXPORT void PrefMember<std::string>::UpdatePref( 319 BASE_PREFS_EXPORT void PrefMember<std::string>::UpdatePref(
320 const std::string& value); 320 const std::string& value);
321 321
322 template <> 322 template <>
323 BASE_PREFS_EXPORT bool PrefMember<std::string>::Internal::UpdateValueInternal( 323 BASE_PREFS_EXPORT bool PrefMember<std::string>::Internal::UpdateValueInternal(
324 const base::Value& value) const; 324 const base::Value& value) const;
325 325
326 template <> 326 template <>
(...skipping 16 matching lines...) Expand all
343 343
344 typedef PrefMember<bool> BooleanPrefMember; 344 typedef PrefMember<bool> BooleanPrefMember;
345 typedef PrefMember<int> IntegerPrefMember; 345 typedef PrefMember<int> IntegerPrefMember;
346 typedef PrefMember<double> DoublePrefMember; 346 typedef PrefMember<double> DoublePrefMember;
347 typedef PrefMember<std::string> StringPrefMember; 347 typedef PrefMember<std::string> StringPrefMember;
348 typedef PrefMember<base::FilePath> FilePathPrefMember; 348 typedef PrefMember<base::FilePath> FilePathPrefMember;
349 // This preference member is expensive for large string arrays. 349 // This preference member is expensive for large string arrays.
350 typedef PrefMember<std::vector<std::string> > StringListPrefMember; 350 typedef PrefMember<std::vector<std::string> > StringListPrefMember;
351 351
352 #endif // BASE_PREFS_PREF_MEMBER_H_ 352 #endif // BASE_PREFS_PREF_MEMBER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698