Index: components/pairing/bluetooth_host_pairing_controller.h |
diff --git a/components/pairing/bluetooth_host_pairing_controller.h b/components/pairing/bluetooth_host_pairing_controller.h |
index 4dd0962565a743b0612933af04040a3707e600e9..05feab1e99d0a569d4ada9a2385c2014eeb949dc 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; |