OLD | NEW |
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_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Virtual for testing. | 110 // Virtual for testing. |
111 virtual BluetoothLowEnergyCharacteristicsFinder* CreateCharacteristicsFinder( | 111 virtual BluetoothLowEnergyCharacteristicsFinder* CreateCharacteristicsFinder( |
112 const BluetoothLowEnergyCharacteristicsFinder::SuccessCallback& | 112 const BluetoothLowEnergyCharacteristicsFinder::SuccessCallback& |
113 success_callback, | 113 success_callback, |
114 const BluetoothLowEnergyCharacteristicsFinder::ErrorCallback& | 114 const BluetoothLowEnergyCharacteristicsFinder::ErrorCallback& |
115 error_callback); | 115 error_callback); |
116 | 116 |
117 // proximity_auth::Connection: | 117 // proximity_auth::Connection: |
118 void SendMessageImpl(scoped_ptr<WireMessage> message) override; | 118 void SendMessageImpl(scoped_ptr<WireMessage> message) override; |
119 scoped_ptr<WireMessage> DeserializeWireMessage( | |
120 bool* is_incomplete_message) override; | |
121 | 119 |
122 // device::BluetoothAdapter::Observer: | 120 // device::BluetoothAdapter::Observer: |
123 void DeviceChanged(device::BluetoothAdapter* adapter, | 121 void DeviceChanged(device::BluetoothAdapter* adapter, |
124 device::BluetoothDevice* device) override; | 122 device::BluetoothDevice* device) override; |
125 void DeviceRemoved(device::BluetoothAdapter* adapter, | 123 void DeviceRemoved(device::BluetoothAdapter* adapter, |
126 device::BluetoothDevice* device) override; | 124 device::BluetoothDevice* device) override; |
127 void GattCharacteristicValueChanged( | 125 void GattCharacteristicValueChanged( |
128 device::BluetoothAdapter* adapter, | 126 device::BluetoothAdapter* adapter, |
129 device::BluetoothGattCharacteristic* characteristic, | 127 device::BluetoothGattCharacteristic* characteristic, |
130 const std::vector<uint8>& value) override; | 128 const std::vector<uint8>& value) override; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 base::TimeDelta delay_after_gatt_connection_; | 310 base::TimeDelta delay_after_gatt_connection_; |
313 | 311 |
314 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; | 312 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; |
315 | 313 |
316 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); | 314 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); |
317 }; | 315 }; |
318 | 316 |
319 } // namespace proximity_auth | 317 } // namespace proximity_auth |
320 | 318 |
321 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 319 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
OLD | NEW |