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

Side by Side Diff: ppapi/proxy/ppb_tcp_server_socket_private_proxy.h

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix tcp tests Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 private: 37 private:
38 typedef std::map<uint32, PPB_TCPServerSocket_Shared*> 38 typedef std::map<uint32, PPB_TCPServerSocket_Shared*>
39 IDToServerSocketMap; 39 IDToServerSocketMap;
40 40
41 void OnMsgListenACK(uint32 plugin_dispatcher_id, 41 void OnMsgListenACK(uint32 plugin_dispatcher_id,
42 PP_Resource socket_resource, 42 PP_Resource socket_resource,
43 uint32 socket_id, 43 uint32 socket_id,
44 const PP_NetAddress_Private& local_addr, 44 const PP_NetAddress_Private& local_addr,
45 int32_t status); 45 int32_t status);
46 void OnMsgAcceptACK(uint32 plugin_dispatcher_id, 46 void OnMsgAcceptACK(int32 socket_routing_id,
47 uint32 server_socket_id, 47 uint32 server_socket_id,
48 uint32 accepted_socket_id, 48 uint32 accepted_socket_id,
49 const PP_NetAddress_Private& local_addr, 49 const PP_NetAddress_Private& local_addr,
50 const PP_NetAddress_Private& remote_addr); 50 const PP_NetAddress_Private& remote_addr);
51 51
52 IDToServerSocketMap id_to_server_socket_; 52 IDToServerSocketMap id_to_server_socket_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Proxy); 54 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Proxy);
55 }; 55 };
56 56
57 } // namespace proxy 57 } // namespace proxy
58 } // namespace ppapi 58 } // namespace ppapi
59 59
60 #endif // PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_ 60 #endif // PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698