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

Side by Side Diff: chromeos/dbus/fake_bluetooth_gatt_characteristic_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ~DelayedCallback(); 171 ~DelayedCallback();
172 172
173 base::Closure callback_; 173 base::Closure callback_;
174 size_t delay_; 174 size_t delay_;
175 }; 175 };
176 176
177 // Map of delayed callbacks. 177 // Map of delayed callbacks.
178 std::map<std::string, DelayedCallback*> action_extra_requests_; 178 std::map<std::string, DelayedCallback*> action_extra_requests_;
179 179
180 // List of observers interested in event notifications from us. 180 // List of observers interested in event notifications from us.
181 ObserverList<Observer> observers_; 181 base::ObserverList<Observer> observers_;
182 182
183 // Weak pointer factory for generating 'this' pointers that might live longer 183 // Weak pointer factory for generating 'this' pointers that might live longer
184 // than we do. 184 // than we do.
185 // Note: This should remain the last member so it'll be destroyed and 185 // Note: This should remain the last member so it'll be destroyed and
186 // invalidate its weak pointers before any other members are destroyed. 186 // invalidate its weak pointers before any other members are destroyed.
187 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient> 187 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient>
188 weak_ptr_factory_; 188 weak_ptr_factory_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient); 190 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient);
191 }; 191 };
192 192
193 } // namespace chromeos 193 } // namespace chromeos
194 194
195 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 195 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_device_client.h ('k') | chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698