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

Side by Side Diff: ppapi/c/private/ppb_flash_tcp_socket.h

Issue 8357030: Add private Pepper API for dealing with PP_Flash_NetAddress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops 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
« no previous file with comments | « ppapi/c/private/ppb_flash_net_address.h ('k') | ppapi/c/private/ppb_flash_udp_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* From private/ppb_flash_tcp_socket.idl modified Fri Sep 23 17:09:42 2011. */ 6 /* From private/ppb_flash_tcp_socket.idl modified Mon Oct 17 16:09:17 2011. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_ 9 #define PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/private/ppb_flash_net_address.h"
17 18
18 #define PPB_FLASH_TCPSOCKET_INTERFACE_0_2 "PPB_Flash_TCPSocket;0.2" 19 #define PPB_FLASH_TCPSOCKET_INTERFACE_0_2 "PPB_Flash_TCPSocket;0.2"
19 #define PPB_FLASH_TCPSOCKET_INTERFACE PPB_FLASH_TCPSOCKET_INTERFACE_0_2 20 #define PPB_FLASH_TCPSOCKET_INTERFACE PPB_FLASH_TCPSOCKET_INTERFACE_0_2
20 21
21 /** 22 /**
22 * @file 23 * @file
23 * This file defines the <code>PPB_Flash_TCPSocket</code> interface. 24 * This file defines the <code>PPB_Flash_TCPSocket</code> interface.
24 */ 25 */
25 26
26 27
27 /** 28 /**
28 * @addtogroup Structs
29 * @{
30 */
31 /**
32 * This is an opaque type holding a network address.
33 */
34 struct PP_Flash_NetAddress {
35 uint32_t size;
36 char data[128];
37 };
38 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Flash_NetAddress, 132);
39 /**
40 * @}
41 */
42
43 /**
44 * @addtogroup Interfaces 29 * @addtogroup Interfaces
45 * @{ 30 * @{
46 */ 31 */
47 /** 32 /**
48 * The <code>PPB_Flash_TCPSocket</code> interface provides TCP socket 33 * The <code>PPB_Flash_TCPSocket</code> interface provides TCP socket
49 * operations. 34 * operations.
50 */ 35 */
51 struct PPB_Flash_TCPSocket { 36 struct PPB_Flash_TCPSocket {
52 /** 37 /**
53 * Allocates a TCP socket resource. 38 * Allocates a TCP socket resource.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 * method. 120 * method.
136 */ 121 */
137 void (*Disconnect)(PP_Resource tcp_socket); 122 void (*Disconnect)(PP_Resource tcp_socket);
138 }; 123 };
139 /** 124 /**
140 * @} 125 * @}
141 */ 126 */
142 127
143 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_ */ 128 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_ */
144 129
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash_net_address.h ('k') | ppapi/c/private/ppb_flash_udp_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698