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

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

Issue 10805007: [cros] UserManager cleanup regarding stub/demo users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused fields and fix compile Created 8 years, 5 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_STATUS_CONSUMER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/common/net/gaia/gaia_auth_consumer.h" 11 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
12 #include "chrome/common/net/gaia/google_service_auth_error.h" 12 #include "chrome/common/net/gaia/google_service_auth_error.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // This is used in various authenticator classes.
18 const char kDemoUser[] = "demouser";
19
20 class LoginFailure { 17 class LoginFailure {
21 public: 18 public:
22 enum FailureReason { 19 enum FailureReason {
23 NONE, 20 NONE,
24 COULD_NOT_MOUNT_CRYPTOHOME, 21 COULD_NOT_MOUNT_CRYPTOHOME,
25 COULD_NOT_MOUNT_TMPFS, 22 COULD_NOT_MOUNT_TMPFS,
26 COULD_NOT_UNMOUNT_CRYPTOHOME, 23 COULD_NOT_UNMOUNT_CRYPTOHOME,
27 DATA_REMOVAL_FAILED, // Could not destroy your old data 24 DATA_REMOVAL_FAILED, // Could not destroy your old data
28 LOGIN_TIMED_OUT, 25 LOGIN_TIMED_OUT,
29 UNLOCK_FAILED, 26 UNLOCK_FAILED,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool using_oauth) = 0; 124 bool using_oauth) = 0;
128 // The current guest login attempt has succeeded. 125 // The current guest login attempt has succeeded.
129 virtual void OnOffTheRecordLoginSuccess() {} 126 virtual void OnOffTheRecordLoginSuccess() {}
130 // The same password didn't work both online and offline. 127 // The same password didn't work both online and offline.
131 virtual void OnPasswordChangeDetected(); 128 virtual void OnPasswordChangeDetected();
132 }; 129 };
133 130
134 } // namespace chromeos 131 } // namespace chromeos
135 132
136 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 133 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698