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

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

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 1 month 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
« no previous file with comments | « base/prefs/testing_pref_store.cc ('k') | base/prefs/value_map_pref_store.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 #ifndef CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ 5 #ifndef BASE_PREFS_VALUE_MAP_PREF_STORE_H_
6 #define CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ 6 #define BASE_PREFS_VALUE_MAP_PREF_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "chrome/browser/prefs/pref_value_map.h" 13 #include "base/prefs/pref_store.h"
14 #include "chrome/common/pref_store.h" 14 #include "base/prefs/pref_value_map.h"
15 15
16 // A basic PrefStore implementation that uses a simple name-value map for 16 // A basic PrefStore implementation that uses a simple name-value map for
17 // storing the preference values. 17 // storing the preference values.
18 class ValueMapPrefStore : public PrefStore { 18 class ValueMapPrefStore : public PrefStore {
19 public: 19 public:
20 typedef std::map<std::string, base::Value*>::iterator iterator; 20 typedef std::map<std::string, base::Value*>::iterator iterator;
21 typedef std::map<std::string, base::Value*>::const_iterator const_iterator; 21 typedef std::map<std::string, base::Value*>::const_iterator const_iterator;
22 22
23 ValueMapPrefStore(); 23 ValueMapPrefStore();
24 24
(...skipping 24 matching lines...) Expand all
49 void NotifyInitializationCompleted(); 49 void NotifyInitializationCompleted();
50 50
51 private: 51 private:
52 PrefValueMap prefs_; 52 PrefValueMap prefs_;
53 53
54 ObserverList<PrefStore::Observer, true> observers_; 54 ObserverList<PrefStore::Observer, true> observers_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ValueMapPrefStore); 56 DISALLOW_COPY_AND_ASSIGN(ValueMapPrefStore);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ 59 #endif // BASE_PREFS_VALUE_MAP_PREF_STORE_H_
OLDNEW
« no previous file with comments | « base/prefs/testing_pref_store.cc ('k') | base/prefs/value_map_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698