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

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

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_
6 #define PPAPI_PROXY_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_ 6 #define PPAPI_PROXY_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 30 matching lines...) Expand all
41 STATE_BEFORE_LISTENING, 41 STATE_BEFORE_LISTENING,
42 STATE_LISTENING, 42 STATE_LISTENING,
43 STATE_CLOSED 43 STATE_CLOSED
44 }; 44 };
45 45
46 // IPC message handlers. 46 // IPC message handlers.
47 void OnPluginMsgListenReply(const ResourceMessageReplyParams& params, 47 void OnPluginMsgListenReply(const ResourceMessageReplyParams& params,
48 const PP_NetAddress_Private& local_addr); 48 const PP_NetAddress_Private& local_addr);
49 void OnPluginMsgAcceptReply(PP_Resource* tcp_socket, 49 void OnPluginMsgAcceptReply(PP_Resource* tcp_socket,
50 const ResourceMessageReplyParams& params, 50 const ResourceMessageReplyParams& params,
51 uint32 accepted_socket_id, 51 int pending_resource_id,
52 const PP_NetAddress_Private& local_addr, 52 const PP_NetAddress_Private& local_addr,
53 const PP_NetAddress_Private& remote_addr); 53 const PP_NetAddress_Private& remote_addr);
54 54
55 State state_; 55 State state_;
56 PP_NetAddress_Private local_addr_; 56 PP_NetAddress_Private local_addr_;
57 57
58 uint32 plugin_dispatcher_id_;
59
60 scoped_refptr<TrackedCallback> listen_callback_; 58 scoped_refptr<TrackedCallback> listen_callback_;
61 scoped_refptr<TrackedCallback> accept_callback_; 59 scoped_refptr<TrackedCallback> accept_callback_;
62 60
63 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketPrivateResource); 61 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketPrivateResource);
64 }; 62 };
65 63
66 } // namespace proxy 64 } // namespace proxy
67 } // namespace ppapi 65 } // namespace ppapi
68 66
69 #endif // PPAPI_PROXY_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_ 67 #endif // PPAPI_PROXY_TCP_SERVER_SOCKET_PRIVATE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/tcp_server_socket_private_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698