Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: chromeos/dbus/shill_device_client.h

Issue 722043004: Clean up wake on wifi handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/mock_shill_manager_client.h ('k') | chromeos/dbus/shill_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chromeos/dbus/mock_shill_manager_client.h ('k') | chromeos/dbus/shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698