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..dfc73f0acd6d70f6f70dbbf18eb0428415edbed7 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,20 @@ class SocketsTcpGetSocketsFunction : public TCPSocketAsyncApiFunction { |
virtual void Work() OVERRIDE; |
}; |
+class SocketsTcpSecureFunction : public TCPSocketAsyncApiFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("sockets.tcp.secure", SOCKETS_TCP_SECURE); |
+ SocketsTcpSecureFunction(); |
+ protected: |
Ryan Sleevi
2013/12/17 00:37:40
STYLE: Follow the local style (and dominant Chromi
lally
2014/01/09 18:47:16
Done.
|
+ virtual ~SocketsTcpSecureFunction(); |
+ virtual bool Prepare() OVERRIDE; |
+ virtual void AsyncWorkStart() OVERRIDE; |
+ private: |
+ virtual void TlsConnectDone(extensions::TLSSocket* sock, int result); |
+ scoped_ptr<api::socket::Secure::Params> params_; |
Ryan Sleevi
2013/12/17 00:37:40
style: Line break
lally
2014/01/09 18:47:16
Done.
|
+ net::URLRequestContextGetter* url_request_getter_; |
+}; |
+ |
} // namespace api |
} // namespace extensions |