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

Side by Side Diff: chrome/browser/chromeos/login/screens/network_screen.h

Issue 745613002: [cros] Cleanup: remove LoginUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698