Index: chrome/browser/extensions/api/socket/socket_api_controller.h |
diff --git a/chrome/browser/extensions/api/socket/socket_api_controller.h b/chrome/browser/extensions/api/socket/socket_api_controller.h |
index ff50bc0b6e9accb0c28644259c7ee49f15b4a3c5..d2ae2633c2b3b4c61d61235aad0225e0c6fb1e92 100644 |
--- a/chrome/browser/extensions/api/socket/socket_api_controller.h |
+++ b/chrome/browser/extensions/api/socket/socket_api_controller.h |
@@ -28,6 +28,11 @@ class IPEndPoint; |
namespace extensions { |
+// kSrcIdKey, or "srcId," binds a socket to the onEvent closure that was |
+// optionally passed to the socket.create() method. It's generated by us in |
+// schema_generated_bindings.js; the application code is unaware of it. |
+extern const char kSrcIdKey[]; |
+ |
class Socket; |
// SocketController keeps track of a collection of Sockets and provides a |
@@ -43,7 +48,7 @@ class SocketController { |
// TODO(miket): aa's suggestion to track lifetime of callbacks associated |
// with each socket, which will then let us clean up when we go out of scope |
// rather than requiring that the app developer remember to call Destroy. |
- int CreateUdp(const Profile* profile, const std::string& extension_id, |
+ int CreateUdp(Profile* profile, const std::string& extension_id, int src_id, |
const GURL& src_url); |
bool DestroyUdp(int socket_id); |