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

Unified Diff: chromeos/network/network_device_handler.h

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable TDLS tests on non-chromeos Created 6 years, 10 months 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.cc » ('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 9b6939913684f749968a4dd92ae4c59347fe0f2e..c1333a309a5b0a94f43738800b725f48abda96aa 100644
--- a/chromeos/network/network_device_handler.h
+++ b/chromeos/network/network_device_handler.h
@@ -33,12 +33,14 @@ namespace chromeos {
class CHROMEOS_EXPORT NetworkDeviceHandler {
public:
// Constants for |error_name| from |error_callback|.
+ static const char kErrorDeviceMissing[];
static const char kErrorFailure[];
static const char kErrorIncorrectPin[];
static const char kErrorNotFound[];
static const char kErrorNotSupported[];
static const char kErrorPinBlocked[];
static const char kErrorPinRequired[];
+ static const char kErrorTimeout[];
static const char kErrorUnknown[];
NetworkDeviceHandler();
@@ -192,6 +194,21 @@ class CHROMEOS_EXPORT NetworkDeviceHandler {
// available in the future.
virtual void SetCellularAllowRoaming(bool allow_roaming) = 0;
+ // Attempts to enable or disable TDLS for the specified IP or MAC address for
+ // the active wifi device.
+ virtual void SetWifiTDLSEnabled(
+ const std::string& ip_or_mac_address,
+ bool enabled,
+ const network_handler::StringResultCallback& callback,
+ const network_handler::ErrorCallback& error_callback) = 0;
+
+ // Returns the TDLS status for the specified IP or MAC address for
+ // the active wifi device.
+ virtual void GetWifiTDLSStatus(
+ const std::string& ip_or_mac_address,
+ const network_handler::StringResultCallback& 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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698