Chromium Code Reviews| Index: ppapi/c/private/ppb_flash_tcp_socket.h |
| diff --git a/ppapi/c/private/ppb_flash_tcp_socket.h b/ppapi/c/private/ppb_flash_tcp_socket.h |
| index 657763170d030984e8151450f31908a0268ef68b..dc191c05e6ce78f59af5eb4e3c4ce671ae848701 100644 |
| --- a/ppapi/c/private/ppb_flash_tcp_socket.h |
| +++ b/ppapi/c/private/ppb_flash_tcp_socket.h |
| @@ -17,7 +17,7 @@ struct PP_Flash_NetAddress { |
| char data[128]; |
| }; |
| -#define PPB_FLASH_TCPSOCKET_INTERFACE "PPB_Flash_TCPSocket;0.1" |
| +#define PPB_FLASH_TCPSOCKET_INTERFACE "PPB_Flash_TCPSocket;0.2" |
| struct PPB_Flash_TCPSocket { |
| PP_Resource (*Create)(PP_Instance instance); |
| @@ -47,12 +47,13 @@ struct PPB_Flash_TCPSocket { |
| struct PP_Flash_NetAddress* remote_addr); |
| // Does SSL handshake and moves to sending and receiving encrypted data. The |
| - // socket must have been successfully connected. |server_name| will be |
| + // socket must have been successfully connected. |host| will be |
| // compared with the name(s) in the server's certificate during the SSL |
| // handshake. |
|
wtc
2011/08/15 19:35:12
Please document |port|. You can say it is only us
yzshen1
2011/08/15 23:09:32
Done.
|
| - int32_t (*InitiateSSL)(PP_Resource tcp_socket, |
| - const char* server_name, |
| - struct PP_CompletionCallback callback); |
| + int32_t (*SSLHandshake)(PP_Resource tcp_socket, |
| + const char* host, |
| + uint16_t port, |
| + struct PP_CompletionCallback callback); |
| // 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 |