| Index: ppapi/proxy/udp_socket_resource_base.h
|
| diff --git a/ppapi/proxy/udp_socket_resource_base.h b/ppapi/proxy/udp_socket_resource_base.h
|
| index d21579b3cfc0b9b6fcf954d9f9179fb37a4d2e7a..9e75ae73d95580aaf07f8c478942d0e99b561cfc 100644
|
| --- a/ppapi/proxy/udp_socket_resource_base.h
|
| +++ b/ppapi/proxy/udp_socket_resource_base.h
|
| @@ -45,6 +45,9 @@ class PPAPI_PROXY_EXPORT UDPSocketResourceBase: public PluginResource {
|
| // The maximum number of received packets that we allow instances of this
|
| // class to buffer.
|
| static const size_t kPluginReceiveBufferSlots;
|
| + // The maximum number of buffers that we allow instances of this class to be
|
| + // sending before we block the plugin.
|
| + static const size_t kPluginSendBufferSlots;
|
|
|
| protected:
|
| UDPSocketResourceBase(Connection connection,
|
| @@ -117,7 +120,6 @@ class PPAPI_PROXY_EXPORT UDPSocketResourceBase: public PluginResource {
|
|
|
| scoped_refptr<TrackedCallback> bind_callback_;
|
| scoped_refptr<TrackedCallback> recvfrom_callback_;
|
| - scoped_refptr<TrackedCallback> sendto_callback_;
|
|
|
| char* read_buffer_;
|
| int32_t bytes_to_read_;
|
| @@ -128,6 +130,8 @@ class PPAPI_PROXY_EXPORT UDPSocketResourceBase: public PluginResource {
|
|
|
| std::queue<RecvBuffer> recv_buffers_;
|
|
|
| + std::queue<scoped_refptr<TrackedCallback>> sendto_callbacks_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(UDPSocketResourceBase);
|
| };
|
|
|
|
|