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_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 12 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
13 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 13 #include "google_apis/gaia/gaia_auth_consumer.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 // An interface for objects that will authenticate a Chromium OS user. | 19 // An interface for objects that will authenticate a Chromium OS user. |
20 // When authentication successfully completes, will call | 20 // When authentication successfully completes, will call |
21 // consumer_->OnLoginSuccess() on the UI thread. | 21 // consumer_->OnLoginSuccess() on the UI thread. |
22 // On failure, will call consumer_->OnLoginFailure() on the UI thread. | 22 // On failure, will call consumer_->OnLoginFailure() on the UI thread. |
23 // On password change detected, will call | 23 // On password change detected, will call |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 private: | 99 private: |
100 friend class base::RefCountedThreadSafe<Authenticator>; | 100 friend class base::RefCountedThreadSafe<Authenticator>; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(Authenticator); | 102 DISALLOW_COPY_AND_ASSIGN(Authenticator); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace chromeos | 105 } // namespace chromeos |
106 | 106 |
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ | 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ |
OLD | NEW |