OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual bool IsInitializationComplete() const OVERRIDE; | 30 virtual bool IsInitializationComplete() const OVERRIDE; |
31 | 31 |
32 // PersistentPrefStore overrides: | 32 // PersistentPrefStore overrides: |
33 virtual bool GetMutableValue(const std::string& key, | 33 virtual bool GetMutableValue(const std::string& key, |
34 base::Value** result) OVERRIDE; | 34 base::Value** result) OVERRIDE; |
35 virtual void ReportValueChanged(const std::string& key) OVERRIDE; | 35 virtual void ReportValueChanged(const std::string& key) OVERRIDE; |
36 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; | 36 virtual void SetValue(const std::string& key, base::Value* value) OVERRIDE; |
37 virtual void SetValueSilently(const std::string& key, | 37 virtual void SetValueSilently(const std::string& key, |
38 base::Value* value) OVERRIDE; | 38 base::Value* value) OVERRIDE; |
39 virtual void RemoveValue(const std::string& key) OVERRIDE; | 39 virtual void RemoveValue(const std::string& key) OVERRIDE; |
40 virtual void MarkNeedsEmptyValue(const std::string& key) OVERRIDE; | |
41 virtual bool ReadOnly() const OVERRIDE; | 40 virtual bool ReadOnly() const OVERRIDE; |
42 virtual PrefReadError GetReadError() const OVERRIDE; | 41 virtual PrefReadError GetReadError() const OVERRIDE; |
43 virtual PersistentPrefStore::PrefReadError ReadPrefs() OVERRIDE; | 42 virtual PersistentPrefStore::PrefReadError ReadPrefs() OVERRIDE; |
44 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) OVERRIDE; | 43 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) OVERRIDE; |
45 virtual void CommitPendingWrite() OVERRIDE {} | 44 virtual void CommitPendingWrite() OVERRIDE {} |
46 | 45 |
47 protected: | 46 protected: |
48 virtual ~AwPrefStore(); | 47 virtual ~AwPrefStore(); |
49 | 48 |
50 private: | 49 private: |
51 // Stores the preference values. | 50 // Stores the preference values. |
52 PrefValueMap prefs_; | 51 PrefValueMap prefs_; |
53 | 52 |
54 ObserverList<PrefStore::Observer, true> observers_; | 53 ObserverList<PrefStore::Observer, true> observers_; |
55 | 54 |
56 DISALLOW_COPY_AND_ASSIGN(AwPrefStore); | 55 DISALLOW_COPY_AND_ASSIGN(AwPrefStore); |
57 }; | 56 }; |
58 | 57 |
59 #endif // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ | 58 #endif // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ |
OLD | NEW |