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

Side by Side Diff: device/bluetooth/bluetooth_remote_gatt_service_chromeos.h

Issue 402303002: bluetoothLowEnergy: Send onServiceAdded after all characteristics are discovered (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 BluetoothDeviceChromeOS* device_; 139 BluetoothDeviceChromeOS* device_;
140 140
141 // Mapping from GATT characteristic object paths to characteristic objects. 141 // Mapping from GATT characteristic object paths to characteristic objects.
142 // owned by this service. Since the Chrome OS implementation uses object 142 // owned by this service. Since the Chrome OS implementation uses object
143 // paths as unique identifiers, we also use this mapping to return 143 // paths as unique identifiers, we also use this mapping to return
144 // characteristics by identifier. 144 // characteristics by identifier.
145 typedef std::map<dbus::ObjectPath, BluetoothRemoteGattCharacteristicChromeOS*> 145 typedef std::map<dbus::ObjectPath, BluetoothRemoteGattCharacteristicChromeOS*>
146 CharacteristicMap; 146 CharacteristicMap;
147 CharacteristicMap characteristics_; 147 CharacteristicMap characteristics_;
148 148
149 // Indicates whether or not the characteristics of this service are known to
150 // have been discovered.
151 bool discovery_complete_;
152
149 // Note: This should remain the last member so it'll be destroyed and 153 // Note: This should remain the last member so it'll be destroyed and
150 // invalidate its weak pointers before any other members are destroyed. 154 // invalidate its weak pointers before any other members are destroyed.
151 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_; 155 base::WeakPtrFactory<BluetoothRemoteGattServiceChromeOS> weak_ptr_factory_;
152 156
153 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS); 157 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceChromeOS);
154 }; 158 };
155 159
156 } // namespace chromeos 160 } // namespace chromeos
157 161
158 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_ 162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698