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

Side by Side Diff: ppapi/c/dev/ppb_transport_dev.h

Issue 7888022: Add DISABLE_TCP_TRANSPORT flag in the Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/p2p/port_allocator.cc ('k') | remoting/protocol/pepper_stream_channel.cc » ('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 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_ 5 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_
6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_ 6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // connections. 46 // connections.
47 PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW = 6, 47 PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW = 6,
48 48
49 // Boolean value that disables Neagle's algorithm when set to 49 // Boolean value that disables Neagle's algorithm when set to
50 // true. When Neagle's algorithm is disabled, all outgoing packets 50 // true. When Neagle's algorithm is disabled, all outgoing packets
51 // are sent as soon as possible. When set to false (by default) data 51 // are sent as soon as possible. When set to false (by default) data
52 // may be buffered until there is a sufficient amount to send. 52 // may be buffered until there is a sufficient amount to send.
53 PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 7, 53 PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 7,
54 54
55 // Delay for ACK packets in milliseconds. By default set to 100ms. 55 // Delay for ACK packets in milliseconds. By default set to 100ms.
56 PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8 56 PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8,
57
58 // Boolean value that disables TCP-based transports when set to
59 // true. By default set to false.
60 PP_TRANSPORTPROPERTY_DISABLE_TCP_TRANSPORT = 9
57 } PP_TransportProperty; 61 } PP_TransportProperty;
58 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4); 62 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4);
59 63
60 typedef enum { 64 typedef enum {
61 // RFC5766 compliant relay server. 65 // RFC5766 compliant relay server.
62 PP_TRANSPORTRELAYMODE_TURN = 0, 66 PP_TRANSPORTRELAYMODE_TURN = 0,
63 67
64 // Legacy Google relay server. 68 // Legacy Google relay server.
65 PP_TRANSPORTRELAYMODE_GOOGLE = 1 69 PP_TRANSPORTRELAYMODE_GOOGLE = 1
66 } PP_TransportRelayMode; 70 } PP_TransportRelayMode;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int32_t (*Send)(PP_Resource transport, 123 int32_t (*Send)(PP_Resource transport,
120 const void* data, 124 const void* data,
121 uint32_t len, 125 uint32_t len,
122 struct PP_CompletionCallback cb); 126 struct PP_CompletionCallback cb);
123 127
124 // Disconnects from the remote peer. 128 // Disconnects from the remote peer.
125 int32_t (*Close)(PP_Resource transport); 129 int32_t (*Close)(PP_Resource transport);
126 }; 130 };
127 131
128 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */ 132 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */
OLDNEW
« no previous file with comments | « content/renderer/p2p/port_allocator.cc ('k') | remoting/protocol/pepper_stream_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698