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

Side by Side Diff: chromeos/dbus/fake_bluetooth_gatt_descriptor_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_DESCRIPTOR_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 struct DescriptorData { 80 struct DescriptorData {
81 DescriptorData(); 81 DescriptorData();
82 ~DescriptorData(); 82 ~DescriptorData();
83 83
84 scoped_ptr<Properties> properties; 84 scoped_ptr<Properties> properties;
85 }; 85 };
86 typedef std::map<dbus::ObjectPath, DescriptorData*> PropertiesMap; 86 typedef std::map<dbus::ObjectPath, DescriptorData*> PropertiesMap;
87 PropertiesMap properties_; 87 PropertiesMap properties_;
88 88
89 // List of observers interested in event notifications from us. 89 // List of observers interested in event notifications from us.
90 ObserverList<Observer> observers_; 90 base::ObserverList<Observer> observers_;
91 91
92 // Weak pointer factory for generating 'this' pointers that might live longer 92 // Weak pointer factory for generating 'this' pointers that might live longer
93 // than we do. 93 // than we do.
94 // Note: This should remain the last member so it'll be destroyed and 94 // Note: This should remain the last member so it'll be destroyed and
95 // invalidate its weak pointers before any other members are destroyed. 95 // invalidate its weak pointers before any other members are destroyed.
96 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient> 96 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient>
97 weak_ptr_factory_; 97 weak_ptr_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient); 99 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient);
100 }; 100 };
101 101
102 } // namespace chromeos 102 } // namespace chromeos
103 103
104 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 104 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h ('k') | chromeos/dbus/fake_bluetooth_gatt_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698