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

Unified Diff: ppapi/proxy/udp_socket_resource_base.cc

Issue 46433002: Support using TrackedCallbacks as hints to determine the handling thread of resource reply messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/websocket_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/udp_socket_resource_base.cc
diff --git a/ppapi/proxy/udp_socket_resource_base.cc b/ppapi/proxy/udp_socket_resource_base.cc
index 8ef3835fecabb378ce916533fcbd3f1db5561073..79ac3484d2535126cc73022199c6af2c92e225fc 100644
--- a/ppapi/proxy/udp_socket_resource_base.cc
+++ b/ppapi/proxy/udp_socket_resource_base.cc
@@ -91,7 +91,8 @@ int32_t UDPSocketResourceBase::SetOptionImpl(
PpapiHostMsg_UDPSocket_SetOption(name, option_data),
base::Bind(&UDPSocketResourceBase::OnPluginMsgSetOptionReply,
base::Unretained(this),
- callback));
+ callback),
+ callback);
return PP_OK_COMPLETIONPENDING;
}
@@ -112,7 +113,8 @@ int32_t UDPSocketResourceBase::BindImpl(
BROWSER,
PpapiHostMsg_UDPSocket_Bind(*addr),
base::Bind(&UDPSocketResourceBase::OnPluginMsgBindReply,
- base::Unretained(this)));
+ base::Unretained(this)),
+ callback);
return PP_OK_COMPLETIONPENDING;
}
@@ -146,7 +148,8 @@ int32_t UDPSocketResourceBase::RecvFromImpl(
BROWSER,
PpapiHostMsg_UDPSocket_RecvFrom(bytes_to_read_),
base::Bind(&UDPSocketResourceBase::OnPluginMsgRecvFromReply,
- base::Unretained(this), addr));
+ base::Unretained(this), addr),
+ callback);
return PP_OK_COMPLETIONPENDING;
}
@@ -180,7 +183,8 @@ int32_t UDPSocketResourceBase::SendToImpl(
BROWSER,
PpapiHostMsg_UDPSocket_SendTo(std::string(buffer, num_bytes), *addr),
base::Bind(&UDPSocketResourceBase::OnPluginMsgSendToReply,
- base::Unretained(this)));
+ base::Unretained(this)),
+ callback);
return PP_OK_COMPLETIONPENDING;
}
« no previous file with comments | « ppapi/proxy/tcp_socket_resource_base.cc ('k') | ppapi/proxy/websocket_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698