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

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: . 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
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..dda279cb0e19ddf74c49f22df18f3a63166b0450 100644
--- a/chromeos/network/network_device_handler.h
+++ b/chromeos/network/network_device_handler.h
@@ -40,6 +40,7 @@ class CHROMEOS_EXPORT NetworkDeviceHandler {
static const char kErrorPinBlocked[];
static const char kErrorPinRequired[];
static const char kErrorUnknown[];
+ static const char kErrorDeviceMissing[];
NetworkDeviceHandler();
virtual ~NetworkDeviceHandler();
@@ -192,6 +193,14 @@ 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;
+
private:
DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler);
};

Powered by Google App Engine
This is Rietveld 408576698