OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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_tcp_socket_private.idl modified Sun Feb 10 00:28:07 2013. */ | 6 /* From private/ppb_tcp_socket_private.idl modified Mon Jun 24 09:53:12 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_H_ |
9 #define PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_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" |
(...skipping 10 matching lines...) Expand all Loading... |
27 * This file defines the <code>PPB_TCPSocket_Private</code> interface. | 27 * This file defines the <code>PPB_TCPSocket_Private</code> interface. |
28 */ | 28 */ |
29 | 29 |
30 | 30 |
31 /** | 31 /** |
32 * @addtogroup Enums | 32 * @addtogroup Enums |
33 * @{ | 33 * @{ |
34 */ | 34 */ |
35 typedef enum { | 35 typedef enum { |
36 /* Special value used for testing. Guaranteed to fail SetOption(). */ | 36 /* Special value used for testing. Guaranteed to fail SetOption(). */ |
37 PP_TCPSOCKETOPTION_INVALID = 0, | 37 PP_TCPSOCKETOPTION_PRIVATE_INVALID = 0, |
38 /* Disable coalescing of small writes to make TCP segments, and instead | 38 /* Disable coalescing of small writes to make TCP segments, and instead |
39 * deliver data immediately. For SSL sockets, this option must be set before | 39 * deliver data immediately. For SSL sockets, this option must be set before |
40 * SSLHandshake() is called. Value type is PP_VARTYPE_BOOL. */ | 40 * SSLHandshake() is called. Value type is PP_VARTYPE_BOOL. */ |
41 PP_TCPSOCKETOPTION_NO_DELAY = 1 | 41 PP_TCPSOCKETOPTION_PRIVATE_NO_DELAY = 1 |
42 } PP_TCPSocketOption_Private; | 42 } PP_TCPSocketOption_Private; |
43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TCPSocketOption_Private, 4); | 43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TCPSocketOption_Private, 4); |
44 /** | 44 /** |
45 * @} | 45 * @} |
46 */ | 46 */ |
47 | 47 |
48 /** | 48 /** |
49 * @addtogroup Interfaces | 49 * @addtogroup Interfaces |
50 * @{ | 50 * @{ |
51 */ | 51 */ |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 int32_t bytes_to_write, | 232 int32_t bytes_to_write, |
233 struct PP_CompletionCallback callback); | 233 struct PP_CompletionCallback callback); |
234 void (*Disconnect)(PP_Resource tcp_socket); | 234 void (*Disconnect)(PP_Resource tcp_socket); |
235 }; | 235 }; |
236 /** | 236 /** |
237 * @} | 237 * @} |
238 */ | 238 */ |
239 | 239 |
240 #endif /* PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_H_ */ | 240 #endif /* PPAPI_C_PRIVATE_PPB_TCP_SOCKET_PRIVATE_H_ */ |
241 | 241 |
OLD | NEW |