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

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_api.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 | « no previous file | chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/networking_private/networking_private_api.h
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_api.h b/chrome/browser/extensions/api/networking_private/networking_private_api.h
index afa9271e1ce2315308df11992d1a74ff2dffecb2..c76e8b288fc52dd140a633fe137cc3f59d82f488 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_api.h
+++ b/chrome/browser/extensions/api/networking_private/networking_private_api.h
@@ -335,4 +335,48 @@ class NetworkingPrivateVerifyAndEncryptDataFunction
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction);
};
+// Implements the chrome.networkingPrivate.setWifiTDLSEnabledState method.
+class NetworkingPrivateSetWifiTDLSEnabledStateFunction
+ : public ChromeAsyncExtensionFunction {
+ public:
+ NetworkingPrivateSetWifiTDLSEnabledStateFunction() {}
+ DECLARE_EXTENSION_FUNCTION("networkingPrivate.setWifiTDLSEnabledState",
+ NETWORKINGPRIVATE_SETWIFITDLSENABLEDSTATE);
+
+ protected:
+ virtual ~NetworkingPrivateSetWifiTDLSEnabledStateFunction();
+
+ // AsyncExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+
+ void Success(const std::string& result);
+ void Failure(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetWifiTDLSEnabledStateFunction);
+};
+
+// Implements the chrome.networkingPrivate.getWifiTDLSStatus method.
+class NetworkingPrivateGetWifiTDLSStatusFunction
+ : public ChromeAsyncExtensionFunction {
+ public:
+ NetworkingPrivateGetWifiTDLSStatusFunction() {}
+ DECLARE_EXTENSION_FUNCTION("networkingPrivate.getWifiTDLSStatus",
+ NETWORKINGPRIVATE_GETWIFITDLSSTATUS);
+
+ protected:
+ virtual ~NetworkingPrivateGetWifiTDLSStatusFunction();
+
+ // AsyncExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+
+ void Success(const std::string& result);
+ void Failure(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetWifiTDLSStatusFunction);
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698