diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 21:27:33 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 21:27:33 +0000 |
commit | 88272c9dd354633f5948da0818407d2530deecca (patch) | |
tree | 264831d28d683b9348d20bb7d2954408bdd00f6e /ppapi/c | |
parent | db0a8ec1f7d23bb4eb68b02318f1fec45bf2e00f (diff) | |
download | chromium_src-88272c9dd354633f5948da0818407d2530deecca.zip chromium_src-88272c9dd354633f5948da0818407d2530deecca.tar.gz chromium_src-88272c9dd354633f5948da0818407d2530deecca.tar.bz2 |
Revert 75003 - Basic implementation of Pepper Transport API.
BUG=None
TEST=Unittests
Review URL: http://codereview.chromium.org/6478018
TBR=sergeyu@chromium.org
Review URL: http://codereview.chromium.org/6480086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/dev/ppb_transport_dev.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/ppapi/c/dev/ppb_transport_dev.h b/ppapi/c/dev/ppb_transport_dev.h index 72ebb67..7dc9ad3 100644 --- a/ppapi/c/dev/ppb_transport_dev.h +++ b/ppapi/c/dev/ppb_transport_dev.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. +/* Copyright (c) 2010 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -16,8 +16,8 @@ #define PPB_TRANSPORT_DEV_INTERFACE "PPB_Transport;0.4" struct PPB_Transport_Dev { - // Creates a new transport object with the specified name using the - // specified protocol. + // Creates a new transport object with the specified name + // using the specified protocol. PP_Resource (*CreateTransport)(PP_Instance instance, const char* name, const char* proto); @@ -25,24 +25,23 @@ struct PPB_Transport_Dev { // Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise. PP_Bool (*IsTransport)(PP_Resource resource); - // Returns PP_TRUE if the transport is currently writable (i.e. can - // send data to the remote peer), PP_FALSE otherwise. + // Returns PP_TRUE if the transport is currently writable + // (i.e. can send data to the remote peer), PP_FALSE otherwise. PP_Bool (*IsWritable)(PP_Resource transport); // TODO(juberti): other getters/setters // connect state // connect type, protocol // RTT - // Establishes a connection to the remote peer. Returns - // PP_ERROR_WOULDBLOCK and notifies on |cb| when connectivity is - // established (or timeout occurs). + // Establishes a connection to the remote peer. + // Returns PP_ERROR_WOULDBLOCK and notifies on |cb| + // when connectivity is established (or timeout occurs). int32_t (*Connect)(PP_Resource transport, struct PP_CompletionCallback cb); - // Obtains another ICE candidate address to be provided to the - // remote peer. Returns PP_ERROR_WOULDBLOCK if there are no more - // addresses to be sent. After the callback is called - // GetNextAddress() must be called again to get the address. + // Obtains another ICE candidate address to be provided + // to the remote peer. Returns PP_ERROR_WOULDBLOCK + // if there are no more addresses to be sent. int32_t (*GetNextAddress)(PP_Resource transport, struct PP_Var* address, struct PP_CompletionCallback cb); @@ -51,16 +50,14 @@ struct PPB_Transport_Dev { int32_t (*ReceiveRemoteAddress)(PP_Resource transport, struct PP_Var address); - // Like recv(), receives data. Returns PP_ERROR_WOULDBLOCK if there - // is currently no data to receive. In that case, the |data| pointer - // should remain valid until the callback is called. + // Like recv(), receives data. Returns PP_ERROR_WOULDBLOCK + // if there is currently no data to receive. int32_t (*Recv)(PP_Resource transport, void* data, uint32_t len, struct PP_CompletionCallback cb); - // Like send(), sends data. Returns PP_ERROR_WOULDBLOCK if the - // socket is currently flow-controlled. In that case, the |data| - // pointer should remain valid until the callback is called. + // Like send(), sends data. Returns PP_ERROR_WOULDBLOCK + // if the socket is currently flow-controlled. int32_t (*Send)(PP_Resource transport, const void* data, uint32_t len, @@ -71,3 +68,4 @@ struct PPB_Transport_Dev { }; #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */ + |