Index: chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h |
diff --git a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h |
index 59413aeb4028417dfe025002a86ae84883161cc1..bece361ea0479a1182d0a8dcd75ec012b602526c 100644 |
--- a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h |
+++ b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h |
@@ -10,6 +10,7 @@ |
namespace extensions { |
class ResumableTCPSocket; |
+class TLSSocket; |
} |
namespace extensions { |
@@ -239,6 +240,27 @@ class SocketsTcpGetSocketsFunction : public TCPSocketAsyncApiFunction { |
virtual void Work() OVERRIDE; |
}; |
+class SocketsTcpSecureFunction : public TCPSocketAsyncApiFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("sockets.tcp.secure", SOCKETS_TCP_SECURE); |
+ SocketsTcpSecureFunction(); |
+ |
+ protected: |
+ virtual ~SocketsTcpSecureFunction(); |
+ virtual bool Prepare() OVERRIDE; |
+ virtual void AsyncWorkStart() OVERRIDE; |
+ |
+ private: |
+ virtual void TlsConnectDone(scoped_ptr<extensions::TLSSocket> sock, |
+ int result); |
+ bool paused_; |
+ bool persistent_; |
+ scoped_ptr<api::socket::Secure::Params> params_; |
+ net::URLRequestContextGetter* url_request_getter_; |
Ryan Sleevi
2014/02/04 22:28:14
scoped_refptr<>
lally
2014/02/11 22:05:35
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(SocketsTcpSecureFunction); |
+}; |
+ |
} // namespace api |
} // namespace extensions |