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

Side by Side Diff: chrome/browser/prefs/overlay_persistent_pref_store.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.h ('k') | chrome/browser/prefs/pref_member.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OVERLAY_PERSISTENT_PREF_STORE_H_ 5 #ifndef CHROME_BROWSER_PREFS_OVERLAY_PERSISTENT_PREF_STORE_H_
6 #define CHROME_BROWSER_PREFS_OVERLAY_PERSISTENT_PREF_STORE_H_ 6 #define CHROME_BROWSER_PREFS_OVERLAY_PERSISTENT_PREF_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 // Returns true if a value has been set for the |key| in this 27 // Returns true if a value has been set for the |key| in this
28 // OverlayPersistentPrefStore, i.e. if it potentially overrides a value 28 // OverlayPersistentPrefStore, i.e. if it potentially overrides a value
29 // from the |underlay_|. 29 // from the |underlay_|.
30 virtual bool IsSetInOverlay(const std::string& key) const; 30 virtual bool IsSetInOverlay(const std::string& key) const;
31 31
32 // Methods of PrefStore. 32 // Methods of PrefStore.
33 virtual void AddObserver(PrefStore::Observer* observer); 33 virtual void AddObserver(PrefStore::Observer* observer);
34 virtual void RemoveObserver(PrefStore::Observer* observer); 34 virtual void RemoveObserver(PrefStore::Observer* observer);
35 virtual bool IsInitializationComplete() const; 35 virtual bool IsInitializationComplete() const;
36 virtual ReadResult GetValue(const std::string& key, 36 virtual ReadResult GetValue(const std::string& key,
37 const Value** result) const; 37 const base::Value** result) const;
38 38
39 // Methods of PersistentPrefStore. 39 // Methods of PersistentPrefStore.
40 virtual ReadResult GetMutableValue(const std::string& key, Value** result); 40 virtual ReadResult GetMutableValue(const std::string& key,
41 virtual void SetValue(const std::string& key, Value* value); 41 base::Value** result);
42 virtual void SetValueSilently(const std::string& key, Value* value); 42 virtual void SetValue(const std::string& key, base::Value* value);
43 virtual void SetValueSilently(const std::string& key, base::Value* value);
43 virtual void RemoveValue(const std::string& key); 44 virtual void RemoveValue(const std::string& key);
44 virtual bool ReadOnly() const; 45 virtual bool ReadOnly() const;
45 virtual PrefReadError ReadPrefs(); 46 virtual PrefReadError ReadPrefs();
46 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate); 47 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate);
47 virtual bool WritePrefs(); 48 virtual bool WritePrefs();
48 virtual void ScheduleWritePrefs(); 49 virtual void ScheduleWritePrefs();
49 virtual void CommitPendingWrite(); 50 virtual void CommitPendingWrite();
50 virtual void ReportValueChanged(const std::string& key); 51 virtual void ReportValueChanged(const std::string& key);
51 52
52 private: 53 private:
53 // Methods of PrefStore::Observer. 54 // Methods of PrefStore::Observer.
54 virtual void OnPrefValueChanged(const std::string& key); 55 virtual void OnPrefValueChanged(const std::string& key);
55 virtual void OnInitializationCompleted(bool succeeded); 56 virtual void OnInitializationCompleted(bool succeeded);
56 57
57 ObserverList<PrefStore::Observer, true> observers_; 58 ObserverList<PrefStore::Observer, true> observers_;
58 PrefValueMap overlay_; 59 PrefValueMap overlay_;
59 scoped_refptr<PersistentPrefStore> underlay_; 60 scoped_refptr<PersistentPrefStore> underlay_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(OverlayPersistentPrefStore); 62 DISALLOW_COPY_AND_ASSIGN(OverlayPersistentPrefStore);
62 }; 63 };
63 64
64 #endif // CHROME_BROWSER_PREFS_OVERLAY_PERSISTENT_PREF_STORE_H_ 65 #endif // CHROME_BROWSER_PREFS_OVERLAY_PERSISTENT_PREF_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.h ('k') | chrome/browser/prefs/pref_member.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698