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

Unified Diff: ppapi/cpp/dev/transport_dev.h

Issue 6042003: Finish basic implementation of Pepper Transport API and... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/cpp/dev/transport_dev.cc » ('j') | ppapi/tests/test_transport.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/transport_dev.h
===================================================================
--- ppapi/cpp/dev/transport_dev.h (revision 68979)
+++ ppapi/cpp/dev/transport_dev.h (working copy)
@@ -6,6 +6,7 @@
#define PPAPI_CPP_DEV_TRANSPORT_DEV_H_
#include "ppapi/c/dev/ppb_transport_dev.h"
+#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/resource.h"
@@ -13,11 +14,19 @@
class Transport_Dev : public Resource {
public:
- Transport_Dev() {}
Transport_Dev(const char* name, const char* proto);
+
+ bool IsWritable();
+ int32_t Connect(const CompletionCallback& cc);
+ int32_t GetNextAddress(PP_Var* address, const CompletionCallback& cc);
+ int32_t ReceiveRemoteAddress(const PP_Var& address);
+ int32_t Recv(void* data, uint32_t len,
+ const CompletionCallback& cc);
+ int32_t Send(const void* data, uint32_t len,
+ const CompletionCallback& cb);
+ int32_t Close();
};
} // namespace pp
#endif // PPAPI_CPP_DEV_TRANSPORT_DEV_H_
-
« no previous file with comments | « no previous file | ppapi/cpp/dev/transport_dev.cc » ('j') | ppapi/tests/test_transport.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698