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

Side by Side Diff: ppapi/proxy/udp_socket_resource_base.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
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/udp_socket_resource_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UDP_SOCKET_RESOURCE_BASE_H_ 5 #ifndef PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_
6 #define PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_ 6 #define PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const ResourceMessageReplyParams& params); 73 const ResourceMessageReplyParams& params);
74 void OnPluginMsgBindReply(const ResourceMessageReplyParams& params, 74 void OnPluginMsgBindReply(const ResourceMessageReplyParams& params,
75 const PP_NetAddress_Private& bound_addr); 75 const PP_NetAddress_Private& bound_addr);
76 void OnPluginMsgRecvFromReply(PP_Resource* output_addr, 76 void OnPluginMsgRecvFromReply(PP_Resource* output_addr,
77 const ResourceMessageReplyParams& params, 77 const ResourceMessageReplyParams& params,
78 const std::string& data, 78 const std::string& data,
79 const PP_NetAddress_Private& addr); 79 const PP_NetAddress_Private& addr);
80 void OnPluginMsgSendToReply(const ResourceMessageReplyParams& params, 80 void OnPluginMsgSendToReply(const ResourceMessageReplyParams& params,
81 int32_t bytes_written); 81 int32_t bytes_written);
82 82
83 void RunCallback(scoped_refptr<TrackedCallback> callback, int32_t pp_result);
84
83 bool private_api_; 85 bool private_api_;
84 bool bound_; 86 bool bound_;
85 bool closed_; 87 bool closed_;
86 88
87 scoped_refptr<TrackedCallback> bind_callback_; 89 scoped_refptr<TrackedCallback> bind_callback_;
88 scoped_refptr<TrackedCallback> recvfrom_callback_; 90 scoped_refptr<TrackedCallback> recvfrom_callback_;
89 scoped_refptr<TrackedCallback> sendto_callback_; 91 scoped_refptr<TrackedCallback> sendto_callback_;
90 92
91 char* read_buffer_; 93 char* read_buffer_;
92 int32_t bytes_to_read_; 94 int32_t bytes_to_read_;
93 95
94 PP_NetAddress_Private recvfrom_addr_; 96 PP_NetAddress_Private recvfrom_addr_;
95 PP_NetAddress_Private bound_addr_; 97 PP_NetAddress_Private bound_addr_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(UDPSocketResourceBase); 99 DISALLOW_COPY_AND_ASSIGN(UDPSocketResourceBase);
98 }; 100 };
99 101
100 } // namespace proxy 102 } // namespace proxy
101 } // namespace ppapi 103 } // namespace ppapi
102 104
103 #endif // PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_ 105 #endif // PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/udp_socket_resource_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698