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

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

Issue 2643393002: bluetooth: Remove queuing of GetCharacteristicsCallbacks (Closed)
Patch Set: Add comment explaining null/empty difference Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DEVICE_H_ 5 #ifndef DEVICE_BLUETOOTH_DEVICE_H_
6 #define DEVICE_BLUETOOTH_DEVICE_H_ 6 #define DEVICE_BLUETOOTH_DEVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 private: 57 private:
58 Device(scoped_refptr<device::BluetoothAdapter> adapter, 58 Device(scoped_refptr<device::BluetoothAdapter> adapter,
59 std::unique_ptr<device::BluetoothGattConnection> connection); 59 std::unique_ptr<device::BluetoothGattConnection> connection);
60 60
61 void GetServicesImpl(const GetServicesCallback& callback); 61 void GetServicesImpl(const GetServicesCallback& callback);
62 62
63 mojom::ServiceInfoPtr ConstructServiceInfoStruct( 63 mojom::ServiceInfoPtr ConstructServiceInfoStruct(
64 const device::BluetoothRemoteGattService& service); 64 const device::BluetoothRemoteGattService& service);
65 65
66 void GetCharacteristicsImpl(const std::string& service_id,
67 const GetCharacteristicsCallback& callback);
68
69 const std::string& GetAddress(); 66 const std::string& GetAddress();
70 67
71 // The current BluetoothAdapter. 68 // The current BluetoothAdapter.
72 scoped_refptr<device::BluetoothAdapter> adapter_; 69 scoped_refptr<device::BluetoothAdapter> adapter_;
73 70
74 // The GATT connection to this device. 71 // The GATT connection to this device.
75 std::unique_ptr<device::BluetoothGattConnection> connection_; 72 std::unique_ptr<device::BluetoothGattConnection> connection_;
76 73
77 mojo::StrongBindingPtr<mojom::Device> binding_; 74 mojo::StrongBindingPtr<mojom::Device> binding_;
78 75
79 // The services request queue which holds callbacks that are waiting for 76 // The services request queue which holds callbacks that are waiting for
80 // services to be discovered for this device. 77 // services to be discovered for this device.
81 std::vector<base::Closure> pending_services_requests_; 78 std::vector<base::Closure> pending_services_requests_;
82 79
83 DISALLOW_COPY_AND_ASSIGN(Device); 80 DISALLOW_COPY_AND_ASSIGN(Device);
84 }; 81 };
85 82
86 } // namespace bluetooth 83 } // namespace bluetooth
87 84
88 #endif // DEVICE_BLUETOOTH_DEVICE_H_ 85 #endif // DEVICE_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/bluetooth_internals/characteristic_list.js ('k') | device/bluetooth/device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698