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

Unified Diff: ash/system/chromeos/network/network_state_list_detailed_view.h

Issue 13978002: Call RequestScan periodically while the network list is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_state_list_detailed_view.h
diff --git a/ash/system/chromeos/network/network_state_list_detailed_view.h b/ash/system/chromeos/network/network_state_list_detailed_view.h
index 212f699afc046cd61ffdebf460c52a2cc3a2f704..0061f4f39e84ff012a1cc9971433ae4acc4c023b 100644
--- a/ash/system/chromeos/network/network_state_list_detailed_view.h
+++ b/ash/system/chromeos/network/network_state_list_detailed_view.h
@@ -15,6 +15,7 @@
#include "ash/system/tray/view_click_listener.h"
#include "ash/system/user/login_status.h"
#include "base/memory/scoped_vector.h"
+#include "base/memory/weak_ptr.h"
#include "ui/views/controls/button/button.h"
namespace chromeos {
@@ -38,10 +39,12 @@ namespace tray {
struct NetworkInfo;
-class NetworkStateListDetailedView : public NetworkDetailedView,
- public views::ButtonListener,
- public ViewClickListener,
- public network_icon::AnimationObserver {
+class NetworkStateListDetailedView
+ : public NetworkDetailedView,
+ public views::ButtonListener,
+ public ViewClickListener,
+ public network_icon::AnimationObserver,
+ public base::SupportsWeakPtr<NetworkStateListDetailedView> {
public:
enum ListType {
LIST_TYPE_NETWORK,
@@ -104,9 +107,12 @@ class NetworkStateListDetailedView : public NetworkDetailedView,
bool ResetInfoBubble();
views::View* CreateNetworkInfoView();
- // Handle click (connect) action
+ // Handle click (connect) action.
void ConnectToNetwork(const std::string& service_path);
+ // Periodically request a network scan.
+ void CallRequestScan();
+
// Type of list (all networks or vpn)
ListType list_type_;
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698