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

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 (nits) 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
« no previous file with comments | « ash/common/system/chromeos/network/vpn_list_view.cc ('k') | chromeos/network/network_connect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ash/common/system/chromeos/network/vpn_list_view.cc ('k') | chromeos/network/network_connect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698