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

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

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 11 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) 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_USER_PREF_STORE_H_ 5 #ifndef CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_
6 #define CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ 6 #define CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 // Methods of PersistentPrefStore. 40 // Methods of PersistentPrefStore.
41 virtual ReadResult GetMutableValue(const std::string& key, 41 virtual ReadResult GetMutableValue(const std::string& key,
42 base::Value** result) OVERRIDE; 42 base::Value** result) OVERRIDE;
43 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; 43 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE;
44 virtual void SetValueSilently(const std::string& key, 44 virtual void SetValueSilently(const std::string& key,
45 base::Value* value) OVERRIDE; 45 base::Value* value) OVERRIDE;
46 virtual void RemoveValue(const std::string& key) OVERRIDE; 46 virtual void RemoveValue(const std::string& key) OVERRIDE;
47 virtual bool ReadOnly() const OVERRIDE; 47 virtual bool ReadOnly() const OVERRIDE;
48 virtual PrefReadError ReadPrefs() OVERRIDE; 48 virtual PrefReadError ReadPrefs() OVERRIDE;
49 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate) OVERRIDE; 49 virtual void ReadPrefsAsync(ReadErrorDelegate* delegate) OVERRIDE;
50 virtual bool WritePrefs() OVERRIDE;
51 virtual void ScheduleWritePrefs() OVERRIDE;
52 virtual void CommitPendingWrite() OVERRIDE; 50 virtual void CommitPendingWrite() OVERRIDE;
53 virtual void ReportValueChanged(const std::string& key) OVERRIDE; 51 virtual void ReportValueChanged(const std::string& key) OVERRIDE;
54 52
55 protected: 53 protected:
56 void RegisterOverlayProperty(const std::string& key); 54 void RegisterOverlayProperty(const std::string& key);
57 void RegisterOverlayProperty(const std::string& overlay_key, 55 void RegisterOverlayProperty(const std::string& overlay_key,
58 const std::string& underlay_key); 56 const std::string& underlay_key);
59 57
60 private: 58 private:
61 friend class OverlayUserPrefStoreTest; 59 friend class OverlayUserPrefStoreTest;
(...skipping 14 matching lines...) Expand all
76 ObserverList<PrefStore::Observer, true> observers_; 74 ObserverList<PrefStore::Observer, true> observers_;
77 PrefValueMap overlay_; 75 PrefValueMap overlay_;
78 scoped_refptr<PersistentPrefStore> underlay_; 76 scoped_refptr<PersistentPrefStore> underlay_;
79 NamesMap overlay_to_underlay_names_map_; 77 NamesMap overlay_to_underlay_names_map_;
80 NamesMap underlay_to_overlay_names_map_; 78 NamesMap underlay_to_overlay_names_map_;
81 79
82 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore); 80 DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore);
83 }; 81 };
84 82
85 #endif // CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_ 83 #endif // CHROME_BROWSER_PREFS_OVERLAY_USER_PREF_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/prefs/overlay_user_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698