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

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

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 years, 11 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_delegate.h
diff --git a/extensions/browser/api/networking_private/networking_private_delegate.h b/extensions/browser/api/networking_private/networking_private_delegate.h
index 78ebc32eaf77cbfa3b90d5f537050092584ea948..1e048b1dc87e315b74866a79b47143ad5eb0af39 100644
--- a/extensions/browser/api/networking_private/networking_private_delegate.h
+++ b/extensions/browser/api/networking_private/networking_private_delegate.h
@@ -164,7 +164,6 @@ class NetworkingPrivateDelegate : public KeyedService {
const std::string& puk,
const VoidCallback& success_callback,
const FailureCallback& failure_callback) = 0;
-
virtual void SetCellularSimState(const std::string& guid,
bool require_pin,
const std::string& current_pin,
@@ -180,6 +179,12 @@ class NetworkingPrivateDelegate : public KeyedService {
// Returns a list of DeviceStateProperties.
virtual std::unique_ptr<DeviceStateList> GetDeviceStateList() = 0;
+ // Returns a dictionary of global policy values (may be empty). Note: the
+ // dictionary is expected to be a superset of the networkingPrivate
+ // GlobalPolicy dictionary. Any properties not in GlobalPolicy will be
+ // ignored.
+ virtual std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() = 0;
Devlin 2017/01/10 15:25:22 It looks like this is only used in the new API fun
stevenjb 2017/01/10 17:49:39 I guess my main objections to passing const Dictio
Devlin 2017/01/10 18:43:06 Most other methods actually *do* create/modify the
stevenjb 2017/01/10 18:58:29 How strongly do you feel about this?
+
// Returns true if the ONC network type |type| is enabled.
virtual bool EnableNetworkType(const std::string& type) = 0;

Powered by Google App Engine
This is Rietveld 408576698