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

Unified Diff: chrome/browser/extensions/api/socket/socket.cc

Issue 10827390: Implement chrome.socket.bind/listen/accept for TCP server socket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: chrome/browser/extensions/api/socket/socket.cc
diff --git a/chrome/browser/extensions/api/socket/socket.cc b/chrome/browser/extensions/api/socket/socket.cc
index 3b5037e4e4fcbc996fc238cd99e336c596dfac00..99ac6b94694ef46cc7787a32ff4a0917997343ea 100644
--- a/chrome/browser/extensions/api/socket/socket.cc
+++ b/chrome/browser/extensions/api/socket/socket.cc
@@ -86,6 +86,14 @@ bool Socket::SetNoDelay(bool no_delay) {
return false;
}
+bool Socket::Listen(int backlog) {
+ return net::ERR_NOT_IMPLEMENTED;
+}
+
+void Socket::Accept(const AcceptCompletionCallback &callback) {
miket_OOO 2012/08/31 23:18:01 whitespace (& callback)
justinlin 2012/09/11 04:32:32 Done.
+ callback.Run(net::ERR_NOT_IMPLEMENTED, NULL);
+}
+
// static
bool Socket::StringAndPortToIPEndPoint(const std::string& ip_address_str,
int port,

Powered by Google App Engine
This is Rietveld 408576698