| 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 <memory> | 10 #include <memory> |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // Delete a local service. | 255 // Delete a local service. |
| 256 void DeleteService(int32_t service_handle, | 256 void DeleteService(int32_t service_handle, |
| 257 const DeleteServiceCallback& callback) override; | 257 const DeleteServiceCallback& callback) override; |
| 258 // Send value indication to a remote device. | 258 // Send value indication to a remote device. |
| 259 void SendIndication(int32_t attribute_handle, | 259 void SendIndication(int32_t attribute_handle, |
| 260 mojom::BluetoothAddressPtr address, | 260 mojom::BluetoothAddressPtr address, |
| 261 bool confirm, | 261 bool confirm, |
| 262 mojo::Array<uint8_t> value, | 262 mojo::Array<uint8_t> value, |
| 263 const SendIndicationCallback& callback) override; | 263 const SendIndicationCallback& callback) override; |
| 264 | 264 |
| 265 void OpenBluetoothSocket( |
| 266 const OpenBluetoothSocketCallback& callback) override; |
| 267 |
| 265 // Chrome observer callbacks | 268 // Chrome observer callbacks |
| 266 void OnPoweredOn( | 269 void OnPoweredOn( |
| 267 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 270 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 268 void OnPoweredOff( | 271 void OnPoweredOff( |
| 269 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 272 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 270 void OnPoweredError( | 273 void OnPoweredError( |
| 271 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; | 274 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
| 272 void OnDiscoveryStarted( | 275 void OnDiscoveryStarted( |
| 273 std::unique_ptr<device::BluetoothDiscoverySession> session); | 276 std::unique_ptr<device::BluetoothDiscoverySession> session); |
| 274 void OnDiscoveryStopped(); | 277 void OnDiscoveryStopped(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 384 |
| 382 // WeakPtrFactory to use for callbacks. | 385 // WeakPtrFactory to use for callbacks. |
| 383 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; | 386 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; |
| 384 | 387 |
| 385 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); | 388 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); |
| 386 }; | 389 }; |
| 387 | 390 |
| 388 } // namespace arc | 391 } // namespace arc |
| 389 | 392 |
| 390 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 393 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
| OLD | NEW |