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

Unified Diff: extensions/common/api/networking_private.idl

Issue 1283613005: Add networkingPrivate.getThirdPartyVpnProviderList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_515987_cr_network_list
Patch Set: Rebase Created 5 years, 4 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/common/api/networking_private.idl
diff --git a/extensions/common/api/networking_private.idl b/extensions/common/api/networking_private.idl
index 6f77414f6cccf200834faf8db8960a912eccf80c..6233c144c471154a301c738362fde441ab7c472a 100644
--- a/extensions/common/api/networking_private.idl
+++ b/extensions/common/api/networking_private.idl
@@ -158,6 +158,7 @@ namespace networkingPrivate {
dictionary ThirdPartyVPNProperties {
DOMString ExtensionID;
+ DOMString? Name;
};
dictionary VPNConfigProperties {
@@ -291,6 +292,8 @@ namespace networkingPrivate {
callback GetDeviceStatesCallback = void(DeviceStateProperties[] result);
callback GetEnabledNetworkTypesCallback = void(NetworkType[] result);
callback CaptivePortalStatusCallback = void(CaptivePortalStatus result);
+ callback GetThirdPartyVPNProvidersCallback =
+ void(ThirdPartyVPNProperties[] result);
// These functions all report failures via chrome.runtime.lastError.
interface Functions {
@@ -505,6 +508,12 @@ namespace networkingPrivate {
static void setCellularSimState(DOMString networkGuid,
CellularSimState simState,
optional VoidCallback callback);
+
+ // Gets the list of third-party VPN providers. Each third-party VPN has
+ // an associated extension ID and a descriptive name. The list may be empty.
+ // |callback|: Called with the third-party VPN properties.
+ static void getThirdPartyVPNProviders(
+ GetThirdPartyVPNProvidersCallback callback);
};
interface Events {
@@ -512,8 +521,8 @@ namespace networkingPrivate {
// GUIDs for networks whose properties have changed.
static void onNetworksChanged(DOMString[] changes);
- // Fired when the list of networks has changed. Sends a complete list of
- // GUIDs for all the current networks.
+ // Fired when the list of visible networks has changed. Sends a complete
+ // list of GUIDs for all visible networks.
static void onNetworkListChanged(DOMString[] changes);
// Fired when the list of devices has changed or any device state properties
@@ -524,5 +533,10 @@ namespace networkingPrivate {
// the network and the corresponding captive portal status.
static void onPortalDetectionCompleted(DOMString networkGuid,
CaptivePortalStatus status);
+
+ // Fired when the list of third-party VPN providers may have changed. Sends
+ // a complete list of third-party providers.
+ static void onThirdPartyVPNProvidersChanged(
+ ThirdPartyVPNProperties[] providers);
};
};

Powered by Google App Engine
This is Rietveld 408576698