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_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Notifies wizard on successful connection. | 66 // Notifies wizard on successful connection. |
67 void NotifyOnConnection(); | 67 void NotifyOnConnection(); |
68 | 68 |
69 // Called by |connection_timer_| when connection to the network timed out. | 69 // Called by |connection_timer_| when connection to the network timed out. |
70 void OnConnectionTimeout(); | 70 void OnConnectionTimeout(); |
71 | 71 |
72 // Update UI based on current network status. | 72 // Update UI based on current network status. |
73 void UpdateStatus(); | 73 void UpdateStatus(); |
74 | 74 |
75 // Stops waiting for network to connect. | 75 // Stops waiting for network to connect. |
76 void StopWaitingForConnection(const string16& network_id); | 76 void StopWaitingForConnection(const base::string16& network_id); |
77 | 77 |
78 // Starts waiting for network connection. Shows spinner. | 78 // Starts waiting for network connection. Shows spinner. |
79 void WaitForConnection(const string16& network_id); | 79 void WaitForConnection(const base::string16& network_id); |
80 | 80 |
81 // True if subscribed to network change notification. | 81 // True if subscribed to network change notification. |
82 bool is_network_subscribed_; | 82 bool is_network_subscribed_; |
83 | 83 |
84 // ID of the the network that we are waiting for. | 84 // ID of the the network that we are waiting for. |
85 string16 network_id_; | 85 base::string16 network_id_; |
86 | 86 |
87 // True if user pressed continue button so we should proceed with OOBE | 87 // True if user pressed continue button so we should proceed with OOBE |
88 // as soon as we are connected. | 88 // as soon as we are connected. |
89 bool continue_pressed_; | 89 bool continue_pressed_; |
90 | 90 |
91 // Timer for connection timeout. | 91 // Timer for connection timeout. |
92 base::OneShotTimer<NetworkScreen> connection_timer_; | 92 base::OneShotTimer<NetworkScreen> connection_timer_; |
93 | 93 |
94 NetworkScreenActor* actor_; | 94 NetworkScreenActor* actor_; |
95 scoped_ptr<login::NetworkStateHelper> network_state_helper_; | 95 scoped_ptr<login::NetworkStateHelper> network_state_helper_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); | 97 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace chromeos | 100 } // namespace chromeos |
101 | 101 |
102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ |
OLD | NEW |