| Index: chrome/browser/extensions/api/socket/socket.h
|
| diff --git a/chrome/browser/extensions/api/socket/socket.h b/chrome/browser/extensions/api/socket/socket.h
|
| index 663a944e3636d2821e675536a7dfea97be38808c..751a5064e36b9d4ec1ccebb1939e37faabb31592 100644
|
| --- a/chrome/browser/extensions/api/socket/socket.h
|
| +++ b/chrome/browser/extensions/api/socket/socket.h
|
| @@ -34,6 +34,12 @@ typedef base::Callback<
|
| // we need to manage it in the context of an extension.
|
| class Socket : public ApiResource {
|
| public:
|
| + enum SocketType {
|
| + TYPE_NONE = 0,
|
| + TYPE_TCP,
|
| + TYPE_UDP,
|
| + };
|
| +
|
| virtual ~Socket();
|
| virtual void Connect(const std::string& address,
|
| int port,
|
| @@ -63,6 +69,8 @@ class Socket : public ApiResource {
|
| virtual bool SetKeepAlive(bool enable, int delay);
|
| virtual bool SetNoDelay(bool no_delay);
|
|
|
| + virtual SocketType socket_type() const = 0;
|
| +
|
| static bool StringAndPortToAddressList(const std::string& ip_address_str,
|
| int port,
|
| net::AddressList* address_list);
|
|
|