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

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

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: PPB_TCPServerSocket_Private_Proxy constructor from Dispatcher* marked as explicit. 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/private/ppb_net_address_private.h"
14 #include "ppapi/proxy/interface_proxy.h"
15
16 namespace ppapi {
17 namespace proxy {
18
19 class PPB_TCPServerSocket_Private_Proxy : public InterfaceProxy {
20 public:
21 explicit PPB_TCPServerSocket_Private_Proxy(Dispatcher* dispatcher);
22 virtual ~PPB_TCPServerSocket_Private_Proxy();
23
24 static PP_Resource CreateProxyResource(PP_Instance instance);
25
26 // InterfaceProxy implementation.
27 virtual bool OnMessageReceived(const IPC::Message& msg);
28
29 static const ApiID kApiID = API_ID_PPB_TCPSERVERSOCKET_PRIVATE;
30
31 private:
32 void OnMsgListenACK(uint32 plugin_dispatcher_id,
33 uint32 real_socket_id,
34 uint32 temp_socket_id,
35 int32_t status);
36 void OnMsgAcceptACK(uint32 plugin_dispatcher_id,
37 uint32 real_socket_id,
38 uint32 accepted_socket_id,
39 const PP_NetAddress_Private& local_addr,
40 const PP_NetAddress_Private& remote_addr);
41
42 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Proxy);
43 };
44
45 } // namespace proxy
46 } // namespace ppapi
47
48 #endif // PPAPI_PROXY_PPB_TCP_SERVER_SOCKET_PRIVATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698