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

Unified Diff: ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 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/shared_impl/api_id.h ('k') | ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h
diff --git a/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h b/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h
index 15cbc03f74c457df551fcf3ea429c79fac68386f..6ce8044948b51285b94358c05c6e724cbeed8b13 100644
--- a/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h
+++ b/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h
@@ -40,16 +40,15 @@ class PPAPI_SHARED_EXPORT PPB_TCPServerSocket_Shared
PP_CompletionCallback callback) OVERRIDE;
virtual void StopListening() OVERRIDE;
- void OnListenCompleted(uint32 real_socket_id, int32_t status);
+ void OnListenCompleted(uint32 socket_id, int32_t status);
virtual void OnAcceptCompleted(bool succeeded,
- uint32 tcp_socket_id,
+ uint32 accepted_socket_id,
const PP_NetAddress_Private& local_addr,
const PP_NetAddress_Private& remote_addr) = 0;
// Send functions that need to be implemented differently for the
// proxied and non-proxied derived classes.
- virtual void SendListen(uint32 temp_socket_id,
- const PP_NetAddress_Private& addr,
+ virtual void SendListen(const PP_NetAddress_Private& addr,
int32_t backlog) = 0;
virtual void SendAccept() = 0;
virtual void SendStopListening() = 0;
@@ -65,10 +64,7 @@ class PPAPI_SHARED_EXPORT PPB_TCPServerSocket_Shared
CLOSED
};
- static uint32 GenerateTempSocketID();
-
- uint32 real_socket_id_;
- uint32 temp_socket_id_;
+ uint32 socket_id_;
State state_;
scoped_refptr<TrackedCallback> listen_callback_;
« no previous file with comments | « ppapi/shared_impl/api_id.h ('k') | ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698