| 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 26 matching lines...) Expand all  Loading... | 
| 37                 uint32 flags) override; | 37                 uint32 flags) override; | 
| 38   void SetValueSilently(const std::string& key, | 38   void SetValueSilently(const std::string& key, | 
| 39                         base::Value* value, | 39                         base::Value* value, | 
| 40                         uint32 flags) override; | 40                         uint32 flags) override; | 
| 41   void RemoveValue(const std::string& key, uint32 flags) override; | 41   void RemoveValue(const std::string& key, uint32 flags) override; | 
| 42   bool ReadOnly() const override; | 42   bool ReadOnly() const override; | 
| 43   PrefReadError GetReadError() const override; | 43   PrefReadError GetReadError() const override; | 
| 44   PersistentPrefStore::PrefReadError ReadPrefs() override; | 44   PersistentPrefStore::PrefReadError ReadPrefs() override; | 
| 45   void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; | 45   void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; | 
| 46   void CommitPendingWrite() override {} | 46   void CommitPendingWrite() override {} | 
|  | 47   void SchedulePendingLossyWrites() override {} | 
| 47 | 48 | 
| 48  protected: | 49  protected: | 
| 49   ~AwPrefStore() override; | 50   ~AwPrefStore() override; | 
| 50 | 51 | 
| 51  private: | 52  private: | 
| 52   // Stores the preference values. | 53   // Stores the preference values. | 
| 53   PrefValueMap prefs_; | 54   PrefValueMap prefs_; | 
| 54 | 55 | 
| 55   ObserverList<PrefStore::Observer, true> observers_; | 56   ObserverList<PrefStore::Observer, true> observers_; | 
| 56 | 57 | 
| 57   DISALLOW_COPY_AND_ASSIGN(AwPrefStore); | 58   DISALLOW_COPY_AND_ASSIGN(AwPrefStore); | 
| 58 }; | 59 }; | 
| 59 | 60 | 
| 60 #endif  // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ | 61 #endif  // ANDROID_WEBVIEW_BROWSER_AW_PREF_STORE_H_ | 
| OLD | NEW | 
|---|