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

Unified Diff: ppapi/thunk/ppb_tcp_socket_api.h

Issue 24195004: PPB_TCPSocket: add support for TCP server socket operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_tcp_socket_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_tcp_socket_api.h
diff --git a/ppapi/thunk/ppb_tcp_socket_api.h b/ppapi/thunk/ppb_tcp_socket_api.h
index d33685fd97fff92f96bfc37e6ec5af6c4851127a..beed0c6317a8e5b6abaeed72f59874c7e661e152 100644
--- a/ppapi/thunk/ppb_tcp_socket_api.h
+++ b/ppapi/thunk/ppb_tcp_socket_api.h
@@ -19,6 +19,8 @@ class PPAPI_THUNK_EXPORT PPB_TCPSocket_API {
public:
virtual ~PPB_TCPSocket_API() {}
+ virtual int32_t Bind(PP_Resource addr,
+ scoped_refptr<TrackedCallback> callback) = 0;
virtual int32_t Connect(PP_Resource addr,
scoped_refptr<TrackedCallback> callback) = 0;
virtual PP_Resource GetLocalAddress() = 0;
@@ -29,6 +31,10 @@ class PPAPI_THUNK_EXPORT PPB_TCPSocket_API {
virtual int32_t Write(const char* buffer,
int32_t bytes_to_write,
scoped_refptr<TrackedCallback> callback) = 0;
+ virtual int32_t Listen(int32_t backlog,
+ scoped_refptr<TrackedCallback> callback) = 0;
+ virtual int32_t Accept(PP_Resource* accepted_tcp_socket,
+ scoped_refptr<TrackedCallback> callback) = 0;
virtual void Close() = 0;
virtual int32_t SetOption(PP_TCPSocket_Option name,
const PP_Var& value,
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/ppb_tcp_socket_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698