Index: chromeos/dbus/shill_device_client.h |
diff --git a/chromeos/dbus/shill_device_client.h b/chromeos/dbus/shill_device_client.h |
index dd668c600333e2caa5b8319737ea24c62de91b70..2e0a376bdda37125005103f11c855128212d3626 100644 |
--- a/chromeos/dbus/shill_device_client.h |
+++ b/chromeos/dbus/shill_device_client.h |
@@ -26,6 +26,12 @@ class ObjectPath; |
} // namespace dbus |
+namespace net { |
+ |
+class IPEndPoint; |
+ |
+} // namespace net |
+ |
namespace chromeos { |
class ShillPropertyChangedObserver; |
@@ -163,6 +169,29 @@ class CHROMEOS_EXPORT ShillDeviceClient : public DBusClient { |
const StringCallback& callback, |
const ErrorCallback& error_callback) = 0; |
+ // Adds |ip_endpoint| to the list of tcp connections that the device should |
+ // monitor to wake the system from suspend. |
+ virtual void AddWakeOnPacketConnection( |
+ const dbus::ObjectPath& device_path, |
+ const net::IPEndPoint& ip_endpoint, |
+ const base::Closure& callback, |
+ const ErrorCallback& error_callback) = 0; |
+ |
+ // Removes |ip_endpoint| from the list of tcp connections that the device |
+ // should monitor to wake the system from suspend. |
+ virtual void RemoveWakeOnPacketConnection( |
+ const dbus::ObjectPath& device_path, |
+ const net::IPEndPoint& ip_endpoint, |
+ const base::Closure& callback, |
+ const ErrorCallback& error_callback) = 0; |
+ |
+ // Clears the list of tcp connections that the device should monitor to wake |
+ // the system from suspend. |
+ virtual void RemoveAllWakeOnPacketConnections( |
+ const dbus::ObjectPath& device_path, |
+ const base::Closure& callback, |
+ const ErrorCallback& error_callback) = 0; |
+ |
// Returns an interface for testing (stub only), or returns NULL. |
virtual TestInterface* GetTestInterface() = 0; |