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

Unified Diff: chromeos/dbus/fake_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 | « chrome/common/pref_names.cc ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_shill_device_client.h
diff --git a/chromeos/dbus/fake_shill_device_client.h b/chromeos/dbus/fake_shill_device_client.h
index a4a0fd35152bcd85b165879035fc136899701b81..6d97e12af935d6c8215432f92be02d157b371eb2 100644
--- a/chromeos/dbus/fake_shill_device_client.h
+++ b/chromeos/dbus/fake_shill_device_client.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_
#define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_
+#include <map>
+#include <set>
#include <string>
#include "base/basictypes.h"
@@ -82,6 +84,20 @@ class CHROMEOS_EXPORT FakeShillDeviceClient
const std::string& peer,
const StringCallback& callback,
const ErrorCallback& error_callback) override;
+ void AddWakeOnPacketConnection(
+ const dbus::ObjectPath& device_path,
+ const net::IPEndPoint& ip_endpoint,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) override;
+ void RemoveWakeOnPacketConnection(
+ const dbus::ObjectPath& device_path,
+ const net::IPEndPoint& ip_endpoint,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) override;
+ void RemoveAllWakeOnPacketConnections(
+ const dbus::ObjectPath& device_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) override;
virtual ShillDeviceClient::TestInterface* GetTestInterface() override;
@@ -121,6 +137,10 @@ class CHROMEOS_EXPORT FakeShillDeviceClient
int tdls_busy_count_; // Number of times to return InProgress for TDLS.
+ // Wake on packet connections for each device.
+ std::map<dbus::ObjectPath, std::set<net::IPEndPoint> >
+ wake_on_packet_connections_;
+
// Note: This should remain the last member so it'll be destroyed and
// invalidate its weak pointers before any other members are destroyed.
base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_;
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698