summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_socket_win.h
diff options
context:
space:
mode:
authoryoungki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 23:29:50 +0000
committeryoungki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 23:29:50 +0000
commit0fd66b503787c5982a2de8dfe8cb8b3b50024310 (patch)
treee9eac3a4890c39669c0cb0e763d1097a52fdc542 /device/bluetooth/bluetooth_socket_win.h
parentcd684ce6d022c4bb5cc3ba9e9a3a07df4813856d (diff)
downloadchromium_src-0fd66b503787c5982a2de8dfe8cb8b3b50024310.zip
chromium_src-0fd66b503787c5982a2de8dfe8cb8b3b50024310.tar.gz
chromium_src-0fd66b503787c5982a2de8dfe8cb8b3b50024310.tar.bz2
Implemented BluetoothSocket::Receive() and BluetoothSocket::Write() on ChromeOS.
This made bluetooth_api.cc platform-independent. BUG=135470 Review URL: https://chromiumcodereview.appspot.com/12039075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_socket_win.h')
-rw-r--r--device/bluetooth/bluetooth_socket_win.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_socket_win.h b/device/bluetooth/bluetooth_socket_win.h
index e9fe120..78bd78f 100644
--- a/device/bluetooth/bluetooth_socket_win.h
+++ b/device/bluetooth/bluetooth_socket_win.h
@@ -5,8 +5,17 @@
#ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_WIN_H_
+#include <string>
+
#include "device/bluetooth/bluetooth_socket.h"
+namespace net {
+
+class DrainableIOBuffer;
+class GrowableIOBuffer;
+
+} // namespace net
+
namespace device {
class BluetoothSocketWin : public BluetoothSocket {
@@ -14,6 +23,10 @@ class BluetoothSocketWin : public BluetoothSocket {
// BluetoothSocket override
virtual int fd() const OVERRIDE;
+ virtual bool Receive(net::GrowableIOBuffer* buffer) OVERRIDE;
+ virtual bool Send(net::DrainableIOBuffer* buffer) OVERRIDE;
+ virtual std::string GetLastErrorMessage() const OVERRIDE;
+
private:
BluetoothSocketWin();
virtual ~BluetoothSocketWin();