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

Unified Diff: jingle/notifier/base/proxy_resolving_client_socket.cc

Issue 8801005: base::Bind: Convert Socket::Read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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: jingle/notifier/base/proxy_resolving_client_socket.cc
diff --git a/jingle/notifier/base/proxy_resolving_client_socket.cc b/jingle/notifier/base/proxy_resolving_client_socket.cc
index 5260cdb03413f5157d98b594c848f028698860ee..f27e00e165c289ca4a1d7dcd8c3afb0816735bcb 100644
--- a/jingle/notifier/base/proxy_resolving_client_socket.cc
+++ b/jingle/notifier/base/proxy_resolving_client_socket.cc
@@ -73,6 +73,13 @@ int ProxyResolvingClientSocket::Read(net::IOBuffer* buf, int buf_len,
NOTREACHED();
return net::ERR_SOCKET_NOT_CONNECTED;
}
+int ProxyResolvingClientSocket::Read(net::IOBuffer* buf, int buf_len,
+ const net::CompletionCallback& callback) {
+ if (transport_.get() && transport_->socket())
+ return transport_->socket()->Read(buf, buf_len, callback);
+ NOTREACHED();
+ return net::ERR_SOCKET_NOT_CONNECTED;
+}
int ProxyResolvingClientSocket::Write(net::IOBuffer* buf, int buf_len,
net::OldCompletionCallback* callback) {

Powered by Google App Engine
This is Rietveld 408576698