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

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

Issue 1059033002: Implement networkingPrivate.getDeviceStates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 5 years, 8 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: extensions/browser/api/networking_private/networking_private_api.h
diff --git a/extensions/browser/api/networking_private/networking_private_api.h b/extensions/browser/api/networking_private/networking_private_api.h
index 31606d09f58e78ecee662e76464126ed72a480f0..07a13e7fb6bc6477952c51ebfce609e8dc00ee10 100644
--- a/extensions/browser/api/networking_private/networking_private_api.h
+++ b/extensions/browser/api/networking_private/networking_private_api.h
@@ -204,6 +204,23 @@ class NetworkingPrivateGetEnabledNetworkTypesFunction
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetEnabledNetworkTypesFunction);
};
+// Implements the chrome.networkingPrivate.getDeviceStates method.
+class NetworkingPrivateGetDeviceStatesFunction : public SyncExtensionFunction {
+ public:
+ NetworkingPrivateGetDeviceStatesFunction() {}
+ DECLARE_EXTENSION_FUNCTION("networkingPrivate.getDeviceStates",
+ NETWORKINGPRIVATE_GETDEVICESTATES);
+
+ protected:
+ ~NetworkingPrivateGetDeviceStatesFunction() override;
+
+ // SyncExtensionFunction overrides.
+ bool RunSync() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetDeviceStatesFunction);
+};
+
// Implements the chrome.networkingPrivate.enableNetworkType method.
class NetworkingPrivateEnableNetworkTypeFunction
: public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698