Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: device/bluetooth/bluetooth_device_win.h

Issue 336933002: device/bluetooth: Introduce BluetoothGattConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Returning ERROR_UNSUPPORTED_DEVICE from platforms. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.mm ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.mm ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698