| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 ppb_tcp_socket.idl modified Fri Sep 20 09:58:19 2013. */ | 6 /* From ppb_tcp_socket.idl modified Thu Oct 30 15:23:32 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_TCP_SOCKET_H_ | 8 #ifndef PPAPI_C_PPB_TCP_SOCKET_H_ |
| 9 #define PPAPI_C_PPB_TCP_SOCKET_H_ | 9 #define PPAPI_C_PPB_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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 * @addtogroup Enums | 30 * @addtogroup Enums |
| 31 * @{ | 31 * @{ |
| 32 */ | 32 */ |
| 33 /** | 33 /** |
| 34 * Option names used by <code>SetOption()</code>. | 34 * Option names used by <code>SetOption()</code>. |
| 35 */ | 35 */ |
| 36 typedef enum { | 36 typedef enum { |
| 37 /** | 37 /** |
| 38 * Disables coalescing of small writes to make TCP segments, and instead | 38 * Disables coalescing of small writes to make TCP segments, and instead |
| 39 * delivers data immediately. Value's type is <code>PP_VARTYPE_BOOL</code>. | 39 * delivers data immediately. Value's type is <code>PP_VARTYPE_BOOL</code>. |
| 40 * This option can only be set after a successful <code>Connect()</code> call. | |
| 41 */ | 40 */ |
| 42 PP_TCPSOCKET_OPTION_NO_DELAY = 0, | 41 PP_TCPSOCKET_OPTION_NO_DELAY = 0, |
| 43 /** | 42 /** |
| 44 * Specifies the total per-socket buffer space reserved for sends. Value's | 43 * Specifies the total per-socket buffer space reserved for sends. Value's |
| 45 * type should be <code>PP_VARTYPE_INT32</code>. | 44 * type should be <code>PP_VARTYPE_INT32</code>. |
| 46 * This option can only be set after a successful <code>Connect()</code> call. | |
| 47 * | 45 * |
| 48 * Note: This is only treated as a hint for the browser to set the buffer | 46 * Note: This is only treated as a hint for the browser to set the buffer |
| 49 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't | 47 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't |
| 50 * guarantee it will conform to the size. | 48 * guarantee it will conform to the size. |
| 51 */ | 49 */ |
| 52 PP_TCPSOCKET_OPTION_SEND_BUFFER_SIZE = 1, | 50 PP_TCPSOCKET_OPTION_SEND_BUFFER_SIZE = 1, |
| 53 /** | 51 /** |
| 54 * Specifies the total per-socket buffer space reserved for receives. Value's | 52 * Specifies the total per-socket buffer space reserved for receives. Value's |
| 55 * type should be <code>PP_VARTYPE_INT32</code>. | 53 * type should be <code>PP_VARTYPE_INT32</code>. |
| 56 * This option can only be set after a successful <code>Connect()</code> call. | |
| 57 * | 54 * |
| 58 * Note: This is only treated as a hint for the browser to set the buffer | 55 * Note: This is only treated as a hint for the browser to set the buffer |
| 59 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't | 56 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't |
| 60 * guarantee it will conform to the size. | 57 * guarantee it will conform to the size. |
| 61 */ | 58 */ |
| 62 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE = 2 | 59 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE = 2 |
| 63 } PP_TCPSocket_Option; | 60 } PP_TCPSocket_Option; |
| 64 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TCPSocket_Option, 4); | 61 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TCPSocket_Option, 4); |
| 65 /** | 62 /** |
| 66 * @} | 63 * @} |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 PP_TCPSocket_Option name, | 293 PP_TCPSocket_Option name, |
| 297 struct PP_Var value, | 294 struct PP_Var value, |
| 298 struct PP_CompletionCallback callback); | 295 struct PP_CompletionCallback callback); |
| 299 }; | 296 }; |
| 300 /** | 297 /** |
| 301 * @} | 298 * @} |
| 302 */ | 299 */ |
| 303 | 300 |
| 304 #endif /* PPAPI_C_PPB_TCP_SOCKET_H_ */ | 301 #endif /* PPAPI_C_PPB_TCP_SOCKET_H_ */ |
| 305 | 302 |
| OLD | NEW |