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

Side by Side Diff: ppapi/api/private/ppb_flash_tcp_socket.idl

Issue 8511032: Make the Pepper Flash net address just private, not Flash-specific. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * This file defines the <code>PPB_Flash_TCPSocket</code> interface. 7 * This file defines the <code>PPB_Flash_TCPSocket</code> interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
(...skipping 23 matching lines...) Expand all
34 int32_t Connect([in] PP_Resource tcp_socket, 34 int32_t Connect([in] PP_Resource tcp_socket,
35 [in] str_t host, 35 [in] str_t host,
36 [in] uint16_t port, 36 [in] uint16_t port,
37 [in] PP_CompletionCallback callback); 37 [in] PP_CompletionCallback callback);
38 38
39 /** 39 /**
40 * Same as Connect(), but connecting to the address given by |addr|. A typical 40 * Same as Connect(), but connecting to the address given by |addr|. A typical
41 * use-case would be for reconnections. 41 * use-case would be for reconnections.
42 */ 42 */
43 int32_t ConnectWithNetAddress([in] PP_Resource tcp_socket, 43 int32_t ConnectWithNetAddress([in] PP_Resource tcp_socket,
44 [in] PP_Flash_NetAddress addr, 44 [in] PP_NetAddress_Private addr,
45 [in] PP_CompletionCallback callback); 45 [in] PP_CompletionCallback callback);
46 46
47 /** 47 /**
48 * Gets the local address of the socket, if it has been connected. 48 * Gets the local address of the socket, if it has been connected.
49 * Returns PP_TRUE on success. 49 * Returns PP_TRUE on success.
50 */ 50 */
51 PP_Bool GetLocalAddress([in] PP_Resource tcp_socket, 51 PP_Bool GetLocalAddress([in] PP_Resource tcp_socket,
52 [out] PP_Flash_NetAddress local_addr); 52 [out] PP_NetAddress_Private local_addr);
53 53
54 /** 54 /**
55 * Gets the remote address of the socket, if it has been connected. 55 * Gets the remote address of the socket, if it has been connected.
56 * Returns PP_TRUE on success. 56 * Returns PP_TRUE on success.
57 */ 57 */
58 PP_Bool GetRemoteAddress([in] PP_Resource tcp_socket, 58 PP_Bool GetRemoteAddress([in] PP_Resource tcp_socket,
59 [out] PP_Flash_NetAddress remote_addr); 59 [out] PP_NetAddress_Private remote_addr);
60 60
61 /** 61 /**
62 * Does SSL handshake and moves to sending and receiving encrypted data. The 62 * Does SSL handshake and moves to sending and receiving encrypted data. The
63 * socket must have been successfully connected. |server_name| will be 63 * socket must have been successfully connected. |server_name| will be
64 * compared with the name(s) in the server's certificate during the SSL 64 * compared with the name(s) in the server's certificate during the SSL
65 * handshake. |server_port| is only used to identify an SSL server in the SSL 65 * handshake. |server_port| is only used to identify an SSL server in the SSL
66 * session cache. 66 * session cache.
67 * When a proxy server is used, |server_name| and |server_port| refer to the 67 * When a proxy server is used, |server_name| and |server_port| refer to the
68 * destination server. 68 * destination server.
69 * If the socket is not connected, or there are pending read/write requests, 69 * If the socket is not connected, or there are pending read/write requests,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 /** 105 /**
106 * Cancels any IO that may be pending, and disconnects the socket. Any pending 106 * Cancels any IO that may be pending, and disconnects the socket. Any pending
107 * callbacks will still run, reporting PP_Error_Aborted if pending IO was 107 * callbacks will still run, reporting PP_Error_Aborted if pending IO was
108 * interrupted. It is NOT valid to call Connect() again after a call to this 108 * interrupted. It is NOT valid to call Connect() again after a call to this
109 * method. Note: If the socket is destroyed when it is still connected, then 109 * method. Note: If the socket is destroyed when it is still connected, then
110 * it will be implicitly disconnected, so you are not required to call this 110 * it will be implicitly disconnected, so you are not required to call this
111 * method. 111 * method.
112 */ 112 */
113 void Disconnect([in] PP_Resource tcp_socket); 113 void Disconnect([in] PP_Resource tcp_socket);
114 }; 114 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698