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

Unified Diff: chrome/browser/chromeos/extensions/networking_private_api.h

Issue 12676017: Adding policy support to the new network configuration stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove policy initialized flags and wrap PolicyMaps with scoped_ptr. Created 7 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: chrome/browser/chromeos/extensions/networking_private_api.h
diff --git a/chrome/browser/chromeos/extensions/networking_private_api.h b/chrome/browser/chromeos/extensions/networking_private_api.h
index 5a619b181a6af616377092b769da82203a5290b2..8fefefc23b82f2b8ad8465ce79f75ce1446104e0 100644
--- a/chrome/browser/chromeos/extensions/networking_private_api.h
+++ b/chrome/browser/chromeos/extensions/networking_private_api.h
@@ -37,6 +37,29 @@ class NetworkingPrivateGetPropertiesFunction : public AsyncExtensionFunction {
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetPropertiesFunction);
};
+// Implements the chrome.networkingPrivate.getManagedProperties method.
+class NetworkingPrivateGetManagedPropertiesFunction
+ : public AsyncExtensionFunction {
+ public:
+ NetworkingPrivateGetManagedPropertiesFunction() {}
+ DECLARE_EXTENSION_FUNCTION("networkingPrivate.getManagedProperties",
+ NETWORKINGPRIVATE_GETMANAGEDPROPERTIES);
+
+ protected:
+ virtual ~NetworkingPrivateGetManagedPropertiesFunction();
+
+ // AsyncExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ // Callbacks if talking to ManagedNetworkConfigurationHandler.
pastarmovj 2013/04/11 14:46:29 This is a little vague - are those callbacks calle
stevenjb 2013/04/11 18:20:08 How about: Callbacks for ManagedNetworkConfigurati
pneubeck (no reviews) 2013/04/15 12:16:24 Done.
pneubeck (no reviews) 2013/04/15 12:16:24 Done.
+ void Success(const std::string& service_path,
+ const base::DictionaryValue& result);
+ void Failure(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
stevenjb 2013/04/11 18:20:08 nit: blank line
pneubeck (no reviews) 2013/04/15 12:16:24 Done.
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetManagedPropertiesFunction);
+};
+
// Implements the chrome.networkingPrivate.getState method.
class NetworkingPrivateGetStateFunction : public AsyncExtensionFunction {
public:

Powered by Google App Engine
This is Rietveld 408576698