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 5400f6be99554d3dec8f57d430d1912954fd8c54..c6eef8ba43e8199724906c5cb5038586d555bb44 100644 |
--- a/ppapi/proxy/udp_socket_resource_base.h |
+++ b/ppapi/proxy/udp_socket_resource_base.h |
@@ -54,6 +54,7 @@ class PPAPI_PROXY_EXPORT UDPSocketResourceBase: public PluginResource { |
int32_t SetOptionImpl(PP_UDPSocket_Option name, |
const PP_Var& value, |
+ bool check_bind_state, |
scoped_refptr<TrackedCallback> callback); |
int32_t BindImpl(const PP_NetAddress_Private* addr, |
scoped_refptr<TrackedCallback> callback); |
@@ -106,6 +107,11 @@ class PPAPI_PROXY_EXPORT UDPSocketResourceBase: public PluginResource { |
PP_Resource* output_addr); |
bool private_api_; |
+ |
+ // |bind_called_| is true if Bind() is called, while |bound_| is true, |
bbudge
2014/12/09 18:37:38
nit: s/if /after
I think the comment would be slig
hidehiko
2014/12/09 19:51:42
Done.
|
+ // after Bind() succeeds. Bind() is an asynchronous method, so the timing |
+ // on which of these is set is slightly different. |
+ bool bind_called_; |
bool bound_; |
bool closed_; |