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

Unified Diff: ash/system/network/network_list.h

Issue 2836453003: tray: Show warning in network tray when VPN or proxy used. (Closed)
Patch Set: Fixed patch set 3 errors. Created 3 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
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/network/network_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/network/network_list.h
diff --git a/ash/system/network/network_list.h b/ash/system/network/network_list.h
index c5615f31173bbc834854f47407e8118d24c1d7be..94152d74c51b7944a0b068c8fab53e5ca7253955 100644
--- a/ash/system/network/network_list.h
+++ b/ash/system/network/network_list.h
@@ -29,6 +29,7 @@ namespace ash {
struct NetworkInfo;
class NetworkListDelegate;
+class TriView;
// A list of available networks of a given type. This class is used for all
// network types except VPNs. For VPNs, see the |VPNList| class.
@@ -67,6 +68,10 @@ class NetworkListView : public NetworkListViewBase,
// Returns a set of guids for the added network connections.
std::unique_ptr<std::set<std::string>> UpdateNetworkListEntries();
+ // Creates the view which displays a warning message, if a VPN or proxy is
+ // being used.
+ TriView* CreateConnectionWarning();
+
// Adds or updates child views representing the network connections when
// |is_wifi| is matching the attribute of a network connection starting at
// |child_index|. Returns a set of guids for the added network
@@ -117,6 +122,7 @@ class NetworkListView : public NetworkListViewBase,
views::Separator* cellular_separator_view_;
views::Separator* tether_separator_view_;
views::Separator* wifi_separator_view_;
+ TriView* connection_warning_;
// An owned list of network info.
std::vector<std::unique_ptr<NetworkInfo>> network_list_;
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/network/network_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698