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

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_api.h

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nonchromeos Created 6 years, 7 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 e244e8477719a383173e5181e645735aa97a8a75..65510eae24989e6b50f877c3a934c117ee59c265 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_api.h
+++ b/chrome/browser/extensions/api/networking_private/networking_private_api.h
@@ -126,6 +126,26 @@ class NetworkingPrivateCreateNetworkFunction
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateCreateNetworkFunction);
};
+// Implements the chrome.networkingPrivate.getNetworks method.
+class NetworkingPrivateGetNetworksFunction
+ : public ChromeAsyncExtensionFunction {
+ public:
+ NetworkingPrivateGetNetworksFunction() {}
+ DECLARE_EXTENSION_FUNCTION("networkingPrivate.getNetworks",
+ NETWORKINGPRIVATE_GETNETWORKS);
+
+ protected:
+ virtual ~NetworkingPrivateGetNetworksFunction();
+
+ // AsyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
+
+ private:
+ void ResultCallback(const base::ListValue& network_list);
+
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetNetworksFunction);
+};
+
// Implements the chrome.networkingPrivate.getVisibleNetworks method.
class NetworkingPrivateGetVisibleNetworksFunction
: public ChromeAsyncExtensionFunction {
« 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