| Index: trunk/src/device/bluetooth/bluetooth_socket_mac.h
|
| ===================================================================
|
| --- trunk/src/device/bluetooth/bluetooth_socket_mac.h (revision 262179)
|
| +++ trunk/src/device/bluetooth/bluetooth_socket_mac.h (working copy)
|
| @@ -21,8 +21,10 @@
|
| #endif
|
|
|
| namespace net {
|
| +
|
| +class DrainableIOBuffer;
|
| class GrowableIOBuffer;
|
| -class IOBuffer;
|
| +
|
| } // namespace net
|
|
|
| namespace device {
|
| @@ -40,17 +42,10 @@
|
| static scoped_refptr<BluetoothSocket> CreateBluetoothSocket(
|
| IOBluetoothSDPServiceRecord* record);
|
|
|
| - // Overriden from BluetoothSocket:
|
| - virtual void Close() 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;
|
| + // BluetoothSocket override
|
| + virtual bool Receive(net::GrowableIOBuffer* buffer) OVERRIDE;
|
| + virtual bool Send(net::DrainableIOBuffer* buffer) OVERRIDE;
|
| + virtual std::string GetLastErrorMessage() const OVERRIDE;
|
|
|
| // called by BluetoothRFCOMMChannelDelegate.
|
| void OnDataReceived(IOBluetoothRFCOMMChannel* rfcomm_channel,
|
|
|