| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |