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

Unified Diff: chromeos/network/network_device_handler.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/network/fake_network_device_handler.cc ('k') | chromeos/network/network_device_handler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « chromeos/network/fake_network_device_handler.cc ('k') | chromeos/network/network_device_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698