| 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 3d297217896471e1bcdcdc04a870891dc1532d70..024d71390c0c48b53b75f76c9f4d7dd83d4ac38b 100644
|
| --- a/chrome/browser/extensions/api/socket/socket.cc
|
| +++ b/chrome/browser/extensions/api/socket/socket.cc
|
| @@ -14,6 +14,8 @@
|
|
|
| namespace extensions {
|
|
|
| +const char kSocketTypeNotSupported[] = "Socket type does not support this API";
|
| +
|
| Socket::Socket(const std::string& owner_extension_id,
|
| ApiResourceEventNotifier* event_notifier)
|
| : ApiResource(owner_extension_id, event_notifier),
|
| @@ -87,6 +89,16 @@ bool Socket::SetNoDelay(bool no_delay) {
|
| return false;
|
| }
|
|
|
| +int Socket::Listen(const std::string& address, int port, int backlog,
|
| + std::string* error_msg) {
|
| + *error_msg = kSocketTypeNotSupported;
|
| + return net::ERR_FAILED;
|
| +}
|
| +
|
| +void Socket::Accept(const AcceptCompletionCallback& callback) {
|
| + callback.Run(net::ERR_FAILED, NULL);
|
| +}
|
| +
|
| // static
|
| bool Socket::StringAndPortToIPEndPoint(const std::string& ip_address_str,
|
| int port,
|
|
|