| Index: chrome/browser/extensions/api/socket/socket_api.h
|
| diff --git a/chrome/browser/extensions/api/socket/socket_api.h b/chrome/browser/extensions/api/socket/socket_api.h
|
| index 87ea8f808d8ef7f45cb45020a431da57b2f78829..fbbbeed8dcdec07af850208ff37d611bea618860 100644
|
| --- a/chrome/browser/extensions/api/socket/socket_api.h
|
| +++ b/chrome/browser/extensions/api/socket/socket_api.h
|
| @@ -73,7 +73,8 @@ class SocketCreateFunction : public SocketExtensionFunction {
|
| enum SocketType {
|
| kSocketTypeInvalid = -1,
|
| kSocketTypeTCP,
|
| - kSocketTypeUDP
|
| + kSocketTypeUDP,
|
| + kSocketTypeSSL
|
| };
|
|
|
| scoped_ptr<api::experimental_socket::Create::Params> params_;
|
| @@ -122,6 +123,24 @@ class SocketConnectFunction : public SocketExtensionWithDnsLookupFunction {
|
| int port_;
|
| };
|
|
|
| +class SocketHandshakeFunction : public SocketExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("experimental.socket.handshake")
|
| +
|
| + protected:
|
| + virtual ~SocketHandshakeFunction() {}
|
| +
|
| + // AsyncAPIFunction:
|
| + virtual bool Prepare() OVERRIDE;
|
| + virtual void AsyncWorkStart() OVERRIDE;
|
| + void OnCompleted(int result);
|
| +
|
| + private:
|
| + int socket_id_;
|
| + std::string ssl_hostname_;
|
| + int ssl_port_;
|
| +};
|
| +
|
| class SocketDisconnectFunction : public SocketExtensionFunction {
|
| public:
|
| DECLARE_EXTENSION_FUNCTION_NAME("experimental.socket.disconnect")
|
|
|