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 <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 private: | 73 private: |
74 struct RecvBuffer { | 74 struct RecvBuffer { |
75 int32_t result; | 75 int32_t result; |
76 std::string data; | 76 std::string data; |
77 PP_NetAddress_Private addr; | 77 PP_NetAddress_Private addr; |
78 }; | 78 }; |
79 | 79 |
80 // Resource overrides. | 80 // Resource overrides. |
81 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, | 81 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, |
82 const IPC::Message& msg) OVERRIDE; | 82 const IPC::Message& msg) override; |
83 | 83 |
84 void PostAbortIfNecessary(scoped_refptr<TrackedCallback>* callback); | 84 void PostAbortIfNecessary(scoped_refptr<TrackedCallback>* callback); |
85 | 85 |
86 // IPC message handlers. | 86 // IPC message handlers. |
87 void OnPluginMsgSetOptionReply(scoped_refptr<TrackedCallback> callback, | 87 void OnPluginMsgSetOptionReply(scoped_refptr<TrackedCallback> callback, |
88 const ResourceMessageReplyParams& params); | 88 const ResourceMessageReplyParams& params); |
89 void OnPluginMsgBindReply(const ResourceMessageReplyParams& params, | 89 void OnPluginMsgBindReply(const ResourceMessageReplyParams& params, |
90 const PP_NetAddress_Private& bound_addr); | 90 const PP_NetAddress_Private& bound_addr); |
91 void OnPluginMsgPushRecvResult(const ResourceMessageReplyParams& params, | 91 void OnPluginMsgPushRecvResult(const ResourceMessageReplyParams& params, |
92 int32_t result, | 92 int32_t result, |
(...skipping 29 matching lines...) Expand all Loading... |
122 | 122 |
123 std::queue<RecvBuffer> recv_buffers_; | 123 std::queue<RecvBuffer> recv_buffers_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(UDPSocketResourceBase); | 125 DISALLOW_COPY_AND_ASSIGN(UDPSocketResourceBase); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace proxy | 128 } // namespace proxy |
129 } // namespace ppapi | 129 } // namespace ppapi |
130 | 130 |
131 #endif // PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_ | 131 #endif // PPAPI_PROXY_UDP_SOCKET_RESOURCE_BASE_H_ |
OLD | NEW |