OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ | 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ |
6 #define COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ | 6 #define COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 PersistentPrefStore::PrefReadError ReadPrefs() override; | 47 PersistentPrefStore::PrefReadError ReadPrefs() override; |
48 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; | 48 void ReadPrefsAsync(ReadErrorDelegate* error_delegate) override; |
49 void CommitPendingWrite() override {} | 49 void CommitPendingWrite() override {} |
50 | 50 |
51 private: | 51 private: |
52 ~CronetInMemoryPrefStore() override; | 52 ~CronetInMemoryPrefStore() override; |
53 | 53 |
54 // Stores the preference values. | 54 // Stores the preference values. |
55 PrefValueMap prefs_; | 55 PrefValueMap prefs_; |
56 | 56 |
57 ObserverList<PrefStore::Observer, true> observers_; | 57 base::ObserverList<PrefStore::Observer, true> observers_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(CronetInMemoryPrefStore); | 59 DISALLOW_COPY_AND_ASSIGN(CronetInMemoryPrefStore); |
60 }; | 60 }; |
61 | 61 |
62 #endif // COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ | 62 #endif // COMPONENTS_CRONET_ANDROID_CRONET_IN_MEMORY_PREF_STORE_H_ |
OLD | NEW |