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

Side by Side Diff: ppapi/proxy/ppb_tcp_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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SOCKET_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/private/ppb_tcp_socket_private.h" 13 #include "ppapi/c/private/ppb_tcp_socket_private.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/ppapi_proxy_export.h" 15 #include "ppapi/proxy/ppapi_proxy_export.h"
16 16
17 namespace ppapi { 17 namespace ppapi {
18 namespace proxy { 18 namespace proxy {
19 19
20 class PPB_TCPSocket_Private_Proxy : public InterfaceProxy { 20 class PPB_TCPSocket_Private_Proxy : public InterfaceProxy {
21 public: 21 public:
22 PPB_TCPSocket_Private_Proxy(Dispatcher* dispatcher); 22 PPB_TCPSocket_Private_Proxy(Dispatcher* dispatcher);
23 virtual ~PPB_TCPSocket_Private_Proxy(); 23 virtual ~PPB_TCPSocket_Private_Proxy();
24 24
25 static PP_Resource CreateProxyResource(PP_Instance instance); 25 static PP_Resource CreateProxyResource(PP_Instance instance);
26 static PP_Resource CreateProxyResourceForConnectedSocket(
27 PP_Instance instance,
28 uint32 socket_id,
29 const PP_NetAddress_Private& local_addr,
30 const PP_NetAddress_Private& remote_addr);
26 31
27 // InterfaceProxy implementation. 32 // InterfaceProxy implementation.
28 virtual bool OnMessageReceived(const IPC::Message& msg); 33 virtual bool OnMessageReceived(const IPC::Message& msg);
29 34
30 static const ApiID kApiID = API_ID_PPB_TCPSOCKET_PRIVATE; 35 static const ApiID kApiID = API_ID_PPB_TCPSOCKET_PRIVATE;
31 36
32 private: 37 private:
33 // Browser->plugin message handlers. 38 // Browser->plugin message handlers.
34 void OnMsgConnectACK(uint32 plugin_dispatcher_id, 39 void OnMsgConnectACK(uint32 plugin_dispatcher_id,
35 uint32 socket_id, 40 uint32 socket_id,
(...skipping 12 matching lines...) Expand all
48 bool succeeded, 53 bool succeeded,
49 int32_t bytes_written); 54 int32_t bytes_written);
50 55
51 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Proxy); 56 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Proxy);
52 }; 57 };
53 58
54 } // namespace proxy 59 } // namespace proxy
55 } // namespace ppapi 60 } // namespace ppapi
56 61
57 #endif // PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_ 62 #endif // PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc ('k') | ppapi/proxy/ppb_tcp_socket_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698