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