| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void SetPinCode(const std::string& pincode) OVERRIDE; | 45 virtual void SetPinCode(const std::string& pincode) OVERRIDE; |
| 46 virtual void SetPasskey(uint32 passkey) OVERRIDE; | 46 virtual void SetPasskey(uint32 passkey) OVERRIDE; |
| 47 virtual void ConfirmPairing() OVERRIDE; | 47 virtual void ConfirmPairing() OVERRIDE; |
| 48 virtual void RejectPairing() OVERRIDE; | 48 virtual void RejectPairing() OVERRIDE; |
| 49 virtual void CancelPairing() OVERRIDE; | 49 virtual void CancelPairing() OVERRIDE; |
| 50 virtual void Disconnect( | 50 virtual void Disconnect( |
| 51 const base::Closure& callback, | 51 const base::Closure& callback, |
| 52 const ErrorCallback& error_callback) OVERRIDE; | 52 const ErrorCallback& error_callback) OVERRIDE; |
| 53 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 53 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
| 54 virtual void ConnectToService( | 54 virtual void ConnectToService( |
| 55 const device::BluetoothUUID& service_uuid, | 55 const std::string& service_uuid, |
| 56 const SocketCallback& callback) OVERRIDE; | 56 const SocketCallback& callback) OVERRIDE; |
| 57 virtual void ConnectToProfile( | 57 virtual void ConnectToProfile( |
| 58 device::BluetoothProfile* profile, | 58 device::BluetoothProfile* profile, |
| 59 const base::Closure& callback, | 59 const base::Closure& callback, |
| 60 const ErrorCallback& error_callback) OVERRIDE; | 60 const ErrorCallback& error_callback) OVERRIDE; |
| 61 virtual void SetOutOfBandPairingData( | 61 virtual void SetOutOfBandPairingData( |
| 62 const BluetoothOutOfBandPairingData& data, | 62 const BluetoothOutOfBandPairingData& data, |
| 63 const base::Closure& callback, | 63 const base::Closure& callback, |
| 64 const ErrorCallback& error_callback) OVERRIDE; | 64 const ErrorCallback& error_callback) OVERRIDE; |
| 65 virtual void ClearOutOfBandPairingData( | 65 virtual void ClearOutOfBandPairingData( |
| 66 const base::Closure& callback, | 66 const base::Closure& callback, |
| 67 const ErrorCallback& error_callback) OVERRIDE; | 67 const ErrorCallback& error_callback) OVERRIDE; |
| 68 | 68 |
| 69 // Used by BluetoothProfileWin to retrieve the service record for the given | 69 // Used by BluetoothProfileWin to retrieve the service record for the given |
| 70 // |uuid|. | 70 // |uuid|. |
| 71 const BluetoothServiceRecord* GetServiceRecord( | 71 const BluetoothServiceRecord* GetServiceRecord( |
| 72 const device::BluetoothUUID& uuid) const; | 72 const std::string& uuid) const; |
| 73 | 73 |
| 74 protected: | 74 protected: |
| 75 // BluetoothDevice override | 75 // BluetoothDevice override |
| 76 virtual std::string GetDeviceName() const OVERRIDE; | 76 virtual std::string GetDeviceName() const OVERRIDE; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 friend class BluetoothAdapterWin; | 79 friend class BluetoothAdapterWin; |
| 80 | 80 |
| 81 // Used by BluetoothAdapterWin to update the visible state during | 81 // Used by BluetoothAdapterWin to update the visible state during |
| 82 // discovery. | 82 // discovery. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 107 // The service records retrieved from SDP. | 107 // The service records retrieved from SDP. |
| 108 typedef ScopedVector<BluetoothServiceRecord> ServiceRecordList; | 108 typedef ScopedVector<BluetoothServiceRecord> ServiceRecordList; |
| 109 ServiceRecordList service_record_list_; | 109 ServiceRecordList service_record_list_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 111 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace device | 114 } // namespace device |
| 115 | 115 |
| 116 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 116 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
| OLD | NEW |