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

Unified Diff: trunk/src/device/bluetooth/bluetooth_socket_chromeos.h

Issue 227493006: Revert 262175 "* Replace "read" method with onReceiveXxx events." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/device/bluetooth/bluetooth_socket_chromeos.h
===================================================================
--- trunk/src/device/bluetooth/bluetooth_socket_chromeos.h (revision 262179)
+++ trunk/src/device/bluetooth/bluetooth_socket_chromeos.h (working copy)
@@ -13,11 +13,16 @@
#include "device/bluetooth/bluetooth_socket.h"
namespace dbus {
+
class FileDescriptor;
+
} // namespace dbus
namespace net {
-class IOBuffer;
+
+class DrainableIOBuffer;
+class GrowableIOBuffer;
+
} // namespace net
namespace chromeos {
@@ -27,17 +32,10 @@
class CHROMEOS_EXPORT BluetoothSocketChromeOS
: public device::BluetoothSocket {
public:
- // 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;
// Create an instance of a BluetoothSocket from the passed file descriptor
// received over D-Bus in |fd|, the descriptor will be taken from that object
« no previous file with comments | « trunk/src/device/bluetooth/bluetooth_socket.cc ('k') | trunk/src/device/bluetooth/bluetooth_socket_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698