diff options
author | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 09:06:51 +0000 |
---|---|---|
committer | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 09:06:51 +0000 |
commit | 476f29d45584c022e523b81708775e19df7ab48e (patch) | |
tree | aa83f7e77ceca8bc3037fd99fbad5297ce4f60b9 /device/bluetooth/bluetooth_socket_mac.h | |
parent | d95e9d1f3d5a55f65c0150735afd7ca291813034 (diff) | |
download | chromium_src-476f29d45584c022e523b81708775e19df7ab48e.zip chromium_src-476f29d45584c022e523b81708775e19df7ab48e.tar.gz chromium_src-476f29d45584c022e523b81708775e19df7ab48e.tar.bz2 |
Implemented BluetoothDeviceMac::ConnectToProfile().
This CL implements BluetoothProfileMac::Connect(), which makes an explicit outgoing connection to the device.
I will add unittests once I get a preliminary review from reviewers.
BUG=229636
Review URL: https://chromiumcodereview.appspot.com/14405008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_socket_mac.h')
-rw-r--r-- | device/bluetooth/bluetooth_socket_mac.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_socket_mac.h b/device/bluetooth/bluetooth_socket_mac.h index 5689a42..4d7bfb7 100644 --- a/device/bluetooth/bluetooth_socket_mac.h +++ b/device/bluetooth/bluetooth_socket_mac.h @@ -13,9 +13,11 @@ #ifdef __OBJC__ @class BluetoothRFCOMMChannelDelegate; @class IOBluetoothRFCOMMChannel; +@class IOBluetoothSDPServiceRecord; #else class BluetoothRFCOMMChannelDelegate; class IOBluetoothRFCOMMChannel; +class IOBluetoothSDPServiceRecord; #endif namespace net { @@ -32,9 +34,14 @@ class BluetoothServiceRecord; // This class is an implementation of BluetoothSocket class for OSX platform. class BluetoothSocketMac : public BluetoothSocket { public: + // TODO(youngki): This method is deprecated; remove this method when + // BluetoothServiceRecord is removed. static scoped_refptr<BluetoothSocket> CreateBluetoothSocket( const BluetoothServiceRecord& service_record); + static scoped_refptr<BluetoothSocket> CreateBluetoothSocket( + IOBluetoothSDPServiceRecord* record); + // BluetoothSocket override virtual bool Receive(net::GrowableIOBuffer* buffer) OVERRIDE; virtual bool Send(net::DrainableIOBuffer* buffer) OVERRIDE; |