Index: chrome/browser/extensions/api/socket/udp_socket.h |
diff --git a/chrome/browser/extensions/api/socket/udp_socket.h b/chrome/browser/extensions/api/socket/udp_socket.h |
index 8e2d2e66f69b4ca01b1f9e41714a2a2c5a4f9d2b..5e02850fd09dd9977d8569b269db842d7f94aea7 100644 |
--- a/chrome/browser/extensions/api/socket/udp_socket.h |
+++ b/chrome/browser/extensions/api/socket/udp_socket.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_EXTENSIONS_API_SOCKET_UDP_SOCKET_H_ |
#include <string> |
+#include <vector> |
#include "chrome/browser/extensions/api/socket/socket.h" |
#include "net/udp/udp_socket.h" |
@@ -35,6 +36,14 @@ class UDPSocket : public Socket { |
virtual bool GetLocalAddress(net::IPEndPoint* address) OVERRIDE; |
virtual Socket::SocketType GetSocketType() const OVERRIDE; |
+ int JoinGroup(const std::string& address); |
+ int LeaveGroup(const std::string& address); |
+ |
+ int SetMulticastTimeToLive(int ttl); |
+ int SetMulticastLoopbackMode(bool loopback); |
+ |
+ const std::vector<std::string>& GetJoinedGroups() const; |
+ |
protected: |
virtual int WriteImpl(net::IOBuffer* io_buffer, |
int io_buffer_size, |
@@ -58,6 +67,8 @@ class UDPSocket : public Socket { |
RecvFromCompletionCallback recv_from_callback_; |
CompletionCallback send_to_callback_; |
+ |
+ std::vector<std::string> multicast_groups_; |
}; |
} // namespace extensions |