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

Side by Side Diff: chrome/common/pref_service.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This provides a way to access the application's current preferences. 5 // This provides a way to access the application's current preferences.
6 // This service has two preference stores, one for "persistent" preferences, 6 // This service has two preference stores, one for "persistent" preferences,
7 // which get serialized for use in the next session, and one for "transient" 7 // which get serialized for use in the next session, and one for "transient"
8 // preferences, which are in effect for only the current session 8 // preferences, which are in effect for only the current session
9 // (this usually encodes things like command-line switches). 9 // (this usually encodes things like command-line switches).
10 // 10 //
11 // Calling the getter functions in this class basically looks at both the 11 // Calling the getter functions in this class basically looks at both the
12 // persistent and transient stores, where any corresponding value in the 12 // persistent and transient stores, where any corresponding value in the
13 // transient store overrides the one in the persistent store. 13 // transient store overrides the one in the persistent store.
14 14
15 #ifndef CHROME_COMMON_PREF_SERVICE_H_ 15 #ifndef CHROME_COMMON_PREF_SERVICE_H_
16 #define CHROME_COMMON_PREF_SERVICE_H_ 16 #define CHROME_COMMON_PREF_SERVICE_H_
17 17
18 #include <string> 18 #include <set>
19 19
20 #include "base/basictypes.h"
21 #include "base/hash_tables.h" 20 #include "base/hash_tables.h"
22 #include "base/non_thread_safe.h" 21 #include "base/non_thread_safe.h"
23 #include "base/observer_list.h" 22 #include "base/observer_list.h"
24 #include "base/scoped_ptr.h" 23 #include "base/scoped_ptr.h"
25 #include "base/task.h" 24 #include "base/task.h"
26 #include "base/values.h" 25 #include "base/values.h"
27 #include "testing/gtest/include/gtest/gtest_prod.h" 26 #include "testing/gtest/include/gtest/gtest_prod.h"
28 27
29 class NotificationObserver; 28 class NotificationObserver;
30 class Preference; 29 class Preference;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // order they are added. 230 // order they are added.
232 typedef ObserverList<NotificationObserver> NotificationObserverList; 231 typedef ObserverList<NotificationObserver> NotificationObserverList;
233 typedef base::hash_map<std::wstring, NotificationObserverList*> 232 typedef base::hash_map<std::wstring, NotificationObserverList*>
234 PrefObserverMap; 233 PrefObserverMap;
235 PrefObserverMap pref_observers_; 234 PrefObserverMap pref_observers_;
236 235
237 DISALLOW_COPY_AND_ASSIGN(PrefService); 236 DISALLOW_COPY_AND_ASSIGN(PrefService);
238 }; 237 };
239 238
240 #endif // CHROME_COMMON_PREF_SERVICE_H_ 239 #endif // CHROME_COMMON_PREF_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698