| Index: device/bluetooth/bluetooth_socket_mac.h
|
| diff --git a/device/bluetooth/bluetooth_socket_mac.h b/device/bluetooth/bluetooth_socket_mac.h
|
| index 4d7bfb7e018fbca160366647fab4b45c536e5360..55eb63bacffffd144400188e1e0d2061dbcadce7 100644
|
| --- a/device/bluetooth/bluetooth_socket_mac.h
|
| +++ b/device/bluetooth/bluetooth_socket_mac.h
|
| @@ -21,10 +21,7 @@ class IOBluetoothSDPServiceRecord;
|
| #endif
|
|
|
| namespace net {
|
| -
|
| -class DrainableIOBuffer;
|
| -class GrowableIOBuffer;
|
| -
|
| +class IOBuffer;
|
| } // namespace net
|
|
|
| namespace device {
|
| @@ -43,9 +40,15 @@ class BluetoothSocketMac : public BluetoothSocket {
|
| IOBluetoothSDPServiceRecord* record);
|
|
|
| // BluetoothSocket override
|
| - virtual bool Receive(net::GrowableIOBuffer* buffer) OVERRIDE;
|
| - virtual bool Send(net::DrainableIOBuffer* buffer) OVERRIDE;
|
| - virtual std::string GetLastErrorMessage() const OVERRIDE;
|
| + virtual void Disconnect(const base::Closure& callback) OVERRIDE;
|
| + virtual void Receive(int count,
|
| + const ReceiveCompletionCallback& success_callback,
|
| + const ReceiveErrorCompletionCallback& error_callback)
|
| + OVERRIDE;
|
| + virtual void Send(scoped_refptr<net::IOBuffer> buffer,
|
| + int buffer_size,
|
| + const SendCompletionCallback& success_callback,
|
| + const ErrorCompletionCallback& error_callback) OVERRIDE;
|
|
|
| // called by BluetoothRFCOMMChannelDelegate.
|
| void OnDataReceived(IOBluetoothRFCOMMChannel* rfcomm_channel,
|
|
|