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

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

Issue 1544033003: Switch to standard integer types in base/prefs/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « base/prefs/pref_value_store.cc ('k') | base/prefs/testing_pref_service.h » ('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 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 // A helper class that assists preferences in firing notifications when lists 5 // A helper class that assists preferences in firing notifications when lists
6 // or dictionaries are changed. 6 // or dictionaries are changed.
7 7
8 #ifndef BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_ 8 #ifndef BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
9 #define BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_ 9 #define BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/macros.h"
14 #include "base/prefs/base_prefs_export.h" 14 #include "base/prefs/base_prefs_export.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
16 #include "base/threading/non_thread_safe.h" 16 #include "base/threading/non_thread_safe.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 18
19 class PrefService; 19 class PrefService;
20 20
21 namespace base { 21 namespace base {
22 class DictionaryValue; 22 class DictionaryValue;
23 class ListValue; 23 class ListValue;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate); 99 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate);
100 }; 100 };
101 101
102 typedef ScopedUserPrefUpdate<base::DictionaryValue, 102 typedef ScopedUserPrefUpdate<base::DictionaryValue,
103 base::Value::TYPE_DICTIONARY> 103 base::Value::TYPE_DICTIONARY>
104 DictionaryPrefUpdate; 104 DictionaryPrefUpdate;
105 typedef ScopedUserPrefUpdate<base::ListValue, base::Value::TYPE_LIST> 105 typedef ScopedUserPrefUpdate<base::ListValue, base::Value::TYPE_LIST>
106 ListPrefUpdate; 106 ListPrefUpdate;
107 107
108 #endif // BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_ 108 #endif // BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
OLDNEW
« no previous file with comments | « base/prefs/pref_value_store.cc ('k') | base/prefs/testing_pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698