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

Side by Side Diff: chrome/browser/chromeos/login/login_performer.h

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
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_LOGIN_PERFORMER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 protected: 142 protected:
143 // Implements OnlineAttemptHost::Delegate. 143 // Implements OnlineAttemptHost::Delegate.
144 virtual void OnChecked(const std::string& username, bool success) OVERRIDE; 144 virtual void OnChecked(const std::string& username, bool success) OVERRIDE;
145 145
146 private: 146 private:
147 // content::NotificationObserver implementation: 147 // content::NotificationObserver implementation:
148 virtual void Observe(int type, 148 virtual void Observe(int type,
149 const content::NotificationSource& source, 149 const content::NotificationSource& source,
150 const content::NotificationDetails& details) OVERRIDE; 150 const content::NotificationDetails& details) OVERRIDE;
151 151
152 // Callback for asynchronous profile creation.
153 void OnProfileCreated(Profile* profile,
154 Profile::CreateStatus status);
155
156 // Requests screen lock and subscribes to screen lock notifications. 152 // Requests screen lock and subscribes to screen lock notifications.
157 void RequestScreenLock(); 153 void RequestScreenLock();
158 154
159 // Requests screen unlock. 155 // Requests screen unlock.
160 void RequestScreenUnlock(); 156 void RequestScreenUnlock();
161 157
162 // Resolves initial LoginFailure::NETWORK_AUTH_FAILED error i.e. 158 // Resolves initial LoginFailure::NETWORK_AUTH_FAILED error i.e.
163 // when screen is not locked yet. 159 // when screen is not locked yet.
164 void ResolveInitialNetworkAuthFailure(); 160 void ResolveInitialNetworkAuthFailure();
165 161
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool screen_lock_requested_; 209 bool screen_lock_requested_;
214 210
215 // True if LoginPerformer instance is waiting for the initial (very first one) 211 // True if LoginPerformer instance is waiting for the initial (very first one)
216 // online authentication response. Used to distinguish cases when screen 212 // online authentication response. Used to distinguish cases when screen
217 // is locked during that stage. No need to resolve screen lock action then. 213 // is locked during that stage. No need to resolve screen lock action then.
218 bool initial_online_auth_pending_; 214 bool initial_online_auth_pending_;
219 215
220 // Authorization mode type. 216 // Authorization mode type.
221 AuthorizationMode auth_mode_; 217 AuthorizationMode auth_mode_;
222 218
223 // True if we use OAuth during authorization process.
224 bool using_oauth_;
225
226 base::WeakPtrFactory<LoginPerformer> weak_factory_; 219 base::WeakPtrFactory<LoginPerformer> weak_factory_;
227 220
228 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); 221 DISALLOW_COPY_AND_ASSIGN(LoginPerformer);
229 }; 222 };
230 223
231 } // namespace chromeos 224 } // namespace chromeos
232 225
233 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ 226 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698