summaryrefslogtreecommitdiffstats
path: root/chromeos/network/network_device_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/network/network_device_handler.h')
-rw-r--r--chromeos/network/network_device_handler.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromeos/network/network_device_handler.h b/chromeos/network/network_device_handler.h
index c1333a3..d682eb9 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);
};