OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chrome/browser/chromeos/status/network_menu.h" | 10 #include "chrome/browser/chromeos/status/network_menu.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void Refresh(); | 58 void Refresh(); |
59 | 59 |
60 private: | 60 private: |
61 void SetNetworkIconAndText(); | 61 void SetNetworkIconAndText(); |
62 | 62 |
63 // Request a network scan and refreshes control state. Should be called | 63 // Request a network scan and refreshes control state. Should be called |
64 // by |network_scan_timer_| only. | 64 // by |network_scan_timer_| only. |
65 void RequestNetworkScan(); | 65 void RequestNetworkScan(); |
66 | 66 |
67 // The Network menu. | 67 // The Network menu. |
68 scoped_ptr<NetworkMenuWebUI> network_menu_; | 68 std::unique_ptr<NetworkMenuWebUI> network_menu_; |
69 | 69 |
70 Actor* actor_; | 70 Actor* actor_; |
71 | 71 |
72 content::WebUI* web_ui_; | 72 content::WebUI* web_ui_; |
73 | 73 |
74 // Is the dropdown shown on one of the OOBE screens. | 74 // Is the dropdown shown on one of the OOBE screens. |
75 bool oobe_; | 75 bool oobe_; |
76 | 76 |
77 // Timer used to periodically force network scan. | 77 // Timer used to periodically force network scan. |
78 base::RepeatingTimer network_scan_timer_; | 78 base::RepeatingTimer network_scan_timer_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown); | 80 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace chromeos | 83 } // namespace chromeos |
84 | 84 |
85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
OLD | NEW |