diff options
Diffstat (limited to 'components/pairing/bluetooth_host_pairing_controller.h')
-rw-r--r-- | components/pairing/bluetooth_host_pairing_controller.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/pairing/bluetooth_host_pairing_controller.h b/components/pairing/bluetooth_host_pairing_controller.h index 4dd0962..05feab1 100644 --- a/components/pairing/bluetooth_host_pairing_controller.h +++ b/components/pairing/bluetooth_host_pairing_controller.h @@ -12,6 +12,7 @@ #include "base/threading/thread_checker.h" #include "components/pairing/host_pairing_controller.h" #include "components/pairing/proto_decoder.h" +#include "device/bluetooth/bluetooth_adapter.h" #include "device/bluetooth/bluetooth_device.h" #include "device/bluetooth/bluetooth_socket.h" @@ -28,6 +29,7 @@ namespace pairing_chromeos { class BluetoothHostPairingController : public HostPairingController, public ProtoDecoder::Observer, + public device::BluetoothAdapter::Observer, public device::BluetoothDevice::PairingDelegate { public: typedef HostPairingController::Observer Observer; @@ -42,6 +44,7 @@ class BluetoothHostPairingController void Reset(); void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter); + void SetName(); void OnSetName(); void OnSetPowered(); void OnCreateService(scoped_refptr<device::BluetoothSocket> socket); @@ -80,6 +83,10 @@ class BluetoothHostPairingController const pairing_api::CompleteSetup& message) OVERRIDE; virtual void OnErrorMessage(const pairing_api::Error& message) OVERRIDE; + // BluetoothAdapter::Observer: + virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter, + bool present) OVERRIDE; + // device::BluetoothDevice::PairingDelegate: virtual void RequestPinCode(device::BluetoothDevice* device) OVERRIDE; virtual void RequestPasskey(device::BluetoothDevice* device) OVERRIDE; |