| OLD | NEW |
| 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 COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
| 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 mojom::BluetoothGattIDPtr char_id, | 185 mojom::BluetoothGattIDPtr char_id, |
| 186 const RegisterForGattNotificationCallback& callback) override; | 186 const RegisterForGattNotificationCallback& callback) override; |
| 187 void DeregisterForGattNotification( | 187 void DeregisterForGattNotification( |
| 188 mojom::BluetoothAddressPtr remote_addr, | 188 mojom::BluetoothAddressPtr remote_addr, |
| 189 mojom::BluetoothGattServiceIDPtr service_id, | 189 mojom::BluetoothGattServiceIDPtr service_id, |
| 190 mojom::BluetoothGattIDPtr char_id, | 190 mojom::BluetoothGattIDPtr char_id, |
| 191 const DeregisterForGattNotificationCallback& callback) override; | 191 const DeregisterForGattNotificationCallback& callback) override; |
| 192 void ReadRemoteRssi(mojom::BluetoothAddressPtr remote_addr, | 192 void ReadRemoteRssi(mojom::BluetoothAddressPtr remote_addr, |
| 193 const ReadRemoteRssiCallback& callback) override; | 193 const ReadRemoteRssiCallback& callback) override; |
| 194 | 194 |
| 195 void OpenBluetoothSocket( |
| 196 const OpenBluetoothSocketCallback& callback) override; |
| 197 |
| 195 // Chrome observer callbacks | 198 // Chrome observer callbacks |
| 196 void OnPoweredOn( | 199 void OnPoweredOn( |
| 197 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 200 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 198 void OnPoweredOff( | 201 void OnPoweredOff( |
| 199 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 202 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 200 void OnPoweredError( | 203 void OnPoweredError( |
| 201 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 204 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 202 void OnDiscoveryStarted( | 205 void OnDiscoveryStarted( |
| 203 std::unique_ptr<device::BluetoothDiscoverySession> session); | 206 std::unique_ptr<device::BluetoothDiscoverySession> session); |
| 204 void OnDiscoveryStopped(); | 207 void OnDiscoveryStopped(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 298 |
| 296 // WeakPtrFactory to use for callbacks. | 299 // WeakPtrFactory to use for callbacks. |
| 297 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; | 300 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; |
| 298 | 301 |
| 299 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); | 302 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); |
| 300 }; | 303 }; |
| 301 | 304 |
| 302 } // namespace arc | 305 } // namespace arc |
| 303 | 306 |
| 304 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 307 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
| OLD | NEW |