Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: ppapi/c/private/ppb_flash_tcp_socket.h

Issue 7535007: Implement PPB_Flash_TCPSocket.InitiateSSL. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add two missing files. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698