| Index: ppapi/api/private/ppb_tcp_socket_private.idl
|
| diff --git a/ppapi/api/private/ppb_tcp_socket_private.idl b/ppapi/api/private/ppb_tcp_socket_private.idl
|
| index ae5cba207dc60b471f21b40af202e5dab3229660..385dee6b4fe526fdf2a3301ac5ff1027f10e6b75 100644
|
| --- a/ppapi/api/private/ppb_tcp_socket_private.idl
|
| +++ b/ppapi/api/private/ppb_tcp_socket_private.idl
|
| @@ -8,7 +8,8 @@
|
| */
|
|
|
| label Chrome {
|
| - M17 = 0.3
|
| + M17 = 0.3,
|
| + M20 = 0.4
|
| };
|
|
|
| /**
|
| @@ -77,6 +78,28 @@ interface PPB_TCPSocket_Private {
|
| [in] PP_CompletionCallback callback);
|
|
|
| /**
|
| + * Returns the server's <code>PPB_X509Certificate_Private</code> for a socket
|
| + * connection if an SSL connection has been established using
|
| + * <code>SSLHandshake</code>. If no SSL connection has been established, a
|
| + * null resource is returned.
|
| + */
|
| + [version=0.4]
|
| + PP_Resource GetServerCertificate([in] PP_Resource tcp_socket);
|
| +
|
| + /**
|
| + * NOTE: This function is not implemented and will return
|
| + * <code>PP_FALSE</code>.
|
| + * Adds a trusted/untrusted chain building certificate to be used for this
|
| + * connection. The <code>certificate</code> must be a
|
| + * <code>PPB_X509Certificate_Private<code>. <code>PP_TRUE</code> is returned
|
| + * upon success.
|
| + */
|
| + [version=0.4]
|
| + PP_Bool AddChainBuildingCertificate([in] PP_Resource tcp_socket,
|
| + [in] PP_Resource certificate,
|
| + [in] PP_Bool is_trusted);
|
| +
|
| + /**
|
| * Reads data from the socket. The size of |buffer| must be at least as large
|
| * as |bytes_to_read|. May perform a partial read. Returns the number of bytes
|
| * read or an error code. If the return value is 0, then it indicates that
|
|
|