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

Side by Side Diff: components/cronet/android/cronet_in_memory_pref_store.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698