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

Side by Side Diff: chromeos/dbus/shill_manager_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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/dbus/shill_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 virtual void VerifyAndEncryptData(const VerificationProperties& properties, 217 virtual void VerifyAndEncryptData(const VerificationProperties& properties,
218 const std::string& data, 218 const std::string& data,
219 const StringCallback& callback, 219 const StringCallback& callback,
220 const ErrorCallback& error_callback) = 0; 220 const ErrorCallback& error_callback) = 0;
221 221
222 // For each technology present, connects to the "best" service available. 222 // For each technology present, connects to the "best" service available.
223 // Called once the user is logged in and certificates are loaded. 223 // Called once the user is logged in and certificates are loaded.
224 virtual void ConnectToBestServices(const base::Closure& callback, 224 virtual void ConnectToBestServices(const base::Closure& callback,
225 const ErrorCallback& error_callback) = 0; 225 const ErrorCallback& error_callback) = 0;
226 226
227 // Requests that shill program the NIC so that packets incoming on
228 // |ip_connection| wake up the CPU.
229 virtual void AddWakeOnPacketConnection(
230 const net::IPEndPoint& ip_endpoint,
231 const base::Closure& callback,
232 const ErrorCallback& error_callback) = 0;
233
234 // Removes a request to wake up on packets coming on |ip_connection|.
235 virtual void RemoveWakeOnPacketConnection(
236 const net::IPEndPoint& ip_endpoint,
237 const base::Closure& callback,
238 const ErrorCallback& error_callback) = 0;
239
240 // Clears all requests to wake up on packets.
241 virtual void RemoveAllWakeOnPacketConnections(
242 const base::Closure& callback,
243 const ErrorCallback& error_callback) = 0;
244
245 // Returns an interface for testing (stub only), or returns NULL. 227 // Returns an interface for testing (stub only), or returns NULL.
246 virtual TestInterface* GetTestInterface() = 0; 228 virtual TestInterface* GetTestInterface() = 0;
247 229
248 protected: 230 protected:
249 friend class ShillManagerClientTest; 231 friend class ShillManagerClientTest;
250 232
251 // Create() should be used instead. 233 // Create() should be used instead.
252 ShillManagerClient(); 234 ShillManagerClient();
253 235
254 private: 236 private:
255 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 237 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
256 }; 238 };
257 239
258 } // namespace chromeos 240 } // namespace chromeos
259 241
260 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 242 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/dbus/shill_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698