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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void RejectPairing() OVERRIDE; | 61 virtual void RejectPairing() OVERRIDE; |
62 virtual void CancelPairing() OVERRIDE; | 62 virtual void CancelPairing() OVERRIDE; |
63 virtual void Disconnect( | 63 virtual void Disconnect( |
64 const base::Closure& callback, | 64 const base::Closure& callback, |
65 const ErrorCallback& error_callback) OVERRIDE; | 65 const ErrorCallback& error_callback) OVERRIDE; |
66 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 66 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
67 virtual void ConnectToService( | 67 virtual void ConnectToService( |
68 const BluetoothUUID& uuid, | 68 const BluetoothUUID& uuid, |
69 const ConnectToServiceCallback& callback, | 69 const ConnectToServiceCallback& callback, |
70 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; | 70 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; |
| 71 virtual void CreateGattConnection( |
| 72 const GattConnectionCallback& callback, |
| 73 const ConnectErrorCallback& error_callback) OVERRIDE; |
71 virtual void StartConnectionMonitor( | 74 virtual void StartConnectionMonitor( |
72 const base::Closure& callback, | 75 const base::Closure& callback, |
73 const ErrorCallback& error_callback) OVERRIDE; | 76 const ErrorCallback& error_callback) OVERRIDE; |
74 | 77 |
75 // Used by BluetoothProfileWin to retrieve the service record for the given | 78 // Used by BluetoothProfileWin to retrieve the service record for the given |
76 // |uuid|. | 79 // |uuid|. |
77 const BluetoothServiceRecordWin* GetServiceRecord( | 80 const BluetoothServiceRecordWin* GetServiceRecord( |
78 const device::BluetoothUUID& uuid) const; | 81 const device::BluetoothUUID& uuid) const; |
79 | 82 |
80 protected: | 83 protected: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // The service records retrieved from SDP. | 124 // The service records retrieved from SDP. |
122 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; | 125 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; |
123 ServiceRecordList service_record_list_; | 126 ServiceRecordList service_record_list_; |
124 | 127 |
125 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 128 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
126 }; | 129 }; |
127 | 130 |
128 } // namespace device | 131 } // namespace device |
129 | 132 |
130 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 133 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
OLD | NEW |