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

Unified Diff: chromeos/network/network_connect.h

Issue 2775663005: Adds NetworkConnect::ConnectToNetworkId(), uses it in detailed VPN page (Closed)
Patch Set: Adds NetworkConnect::ConnectToNetworkId(), uses it in detailed VPN page (test) Created 3 years, 9 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: chromeos/network/network_connect.h
diff --git a/chromeos/network/network_connect.h b/chromeos/network/network_connect.h
index 375283b0de3e6b7b85f5277c1602ae89338b9530..0e066985cc09ef42e8e39ebfd7a411eb55d4691a 100644
--- a/chromeos/network/network_connect.h
+++ b/chromeos/network/network_connect.h
@@ -80,6 +80,9 @@ class CHROMEOS_EXPORT NetworkConnect {
// Requests a network connection and handles any errors and notifications.
virtual void ConnectToNetworkId(const std::string& network_id) = 0;
+ // Requests a network disconnection. Ignores any errors and notifications.
+ virtual void DisconnectFromNetworkId(const std::string& network_id) = 0;
+
// Maybe show the configuration UI after a connect failure based on the
// network state and error name. Returns true if the UI is shown.
virtual bool MaybeShowConfigureUI(const std::string& network_id,

Powered by Google App Engine
This is Rietveld 408576698