Index: chromeos/network/network_device_handler.h |
diff --git a/chromeos/network/network_device_handler.h b/chromeos/network/network_device_handler.h |
index c1333a309a5b0a94f43738800b725f48abda96aa..d682eb9a07c7ce83f024053ed6c34f3eb45b6377 100644 |
--- a/chromeos/network/network_device_handler.h |
+++ b/chromeos/network/network_device_handler.h |
@@ -15,6 +15,10 @@ namespace base { |
class Value; |
} |
+namespace net { |
+class IPEndPoint; |
+} |
+ |
namespace chromeos { |
// The NetworkDeviceHandler class allows making device specific requests on a |
@@ -209,6 +213,26 @@ class CHROMEOS_EXPORT NetworkDeviceHandler { |
const network_handler::StringResultCallback& callback, |
const network_handler::ErrorCallback& error_callback) = 0; |
+ // Adds |ip_endpoint| to the list of tcp connections that the wifi device |
+ // should monitor to wake the system from suspend. |
+ virtual void AddWifiWakeOnPacketConnection( |
+ const net::IPEndPoint& ip_endpoint, |
+ const base::Closure& callback, |
+ const network_handler::ErrorCallback& error_callback) = 0; |
+ |
+ // Removes |ip_endpoint| from the list of tcp connections that the wifi device |
+ // should monitor to wake the system from suspend. |
+ virtual void RemoveWifiWakeOnPacketConnection( |
+ const net::IPEndPoint& ip_endpoint, |
+ const base::Closure& callback, |
+ const network_handler::ErrorCallback& error_callback) = 0; |
+ |
+ // Clears the list of tcp connections that the wifi device should monitor to |
+ // wake the system from suspend. |
+ virtual void RemoveAllWifiWakeOnPacketConnections( |
+ const base::Closure& callback, |
+ const network_handler::ErrorCallback& error_callback) = 0; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); |
}; |