| 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/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 std::string GetTimezone() const; | 89 std::string GetTimezone() const; |
| 90 | 90 |
| 91 void AddObserver(Observer* observer); | 91 void AddObserver(Observer* observer); |
| 92 void RemoveObserver(Observer* observer); | 92 void RemoveObserver(Observer* observer); |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 friend class NetworkScreenTest; | 95 friend class NetworkScreenTest; |
| 96 FRIEND_TEST_ALL_PREFIXES(NetworkScreenTest, Timeout); | 96 FRIEND_TEST_ALL_PREFIXES(NetworkScreenTest, Timeout); |
| 97 FRIEND_TEST_ALL_PREFIXES(NetworkScreenTest, CanConnect); | 97 FRIEND_TEST_ALL_PREFIXES(NetworkScreenTest, CanConnect); |
| 98 | 98 |
| 99 // Subscribe to timezone changes. |
| 100 void InitializeTimezoneObserver(); |
| 101 |
| 99 // Subscribes NetworkScreen to the network change notification, | 102 // Subscribes NetworkScreen to the network change notification, |
| 100 // forces refresh of current network state. | 103 // forces refresh of current network state. |
| 101 void Refresh(); | 104 void Refresh(); |
| 102 | 105 |
| 103 // Sets the NetworkStateHelper for use in tests. This | 106 // Sets the NetworkStateHelper for use in tests. This |
| 104 // class will take ownership of the pointed object. | 107 // class will take ownership of the pointed object. |
| 105 void SetNetworkStateHelperForTest(login::NetworkStateHelper* helper); | 108 void SetNetworkStateHelperForTest(login::NetworkStateHelper* helper); |
| 106 | 109 |
| 107 // Subscribes to network change notifications. | 110 // Subscribes to network change notifications. |
| 108 void SubscribeNetworkNotification(); | 111 void SubscribeNetworkNotification(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ObserverList<Observer> observers_; | 181 ObserverList<Observer> observers_; |
| 179 | 182 |
| 180 base::WeakPtrFactory<NetworkScreen> weak_factory_; | 183 base::WeakPtrFactory<NetworkScreen> weak_factory_; |
| 181 | 184 |
| 182 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); | 185 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); |
| 183 }; | 186 }; |
| 184 | 187 |
| 185 } // namespace chromeos | 188 } // namespace chromeos |
| 186 | 189 |
| 187 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ | 190 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_SCREEN_H_ |
| OLD | NEW |