Index: chromeos/login/auth/authenticator.h |
diff --git a/chrome/browser/chromeos/login/auth/authenticator.h b/chromeos/login/auth/authenticator.h |
similarity index 89% |
rename from chrome/browser/chromeos/login/auth/authenticator.h |
rename to chromeos/login/auth/authenticator.h |
index 69257fdf6e630bc1d1ae254aa5826231d1d9d142..b5eb31c3dded7f619fbf0138239808926ae57c08 100644 |
--- a/chrome/browser/chromeos/login/auth/authenticator.h |
+++ b/chromeos/login/auth/authenticator.h |
@@ -2,13 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
-#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
+#ifndef CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
+#define CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
#include <string> |
#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
+#include "chromeos/chromeos_export.h" |
#include "chromeos/login/auth/auth_status_consumer.h" |
#include "google_apis/gaia/gaia_auth_consumer.h" |
@@ -23,7 +24,8 @@ class UserContext; |
// 1. On successful authentication, will call consumer_->OnAuthSuccess(). |
// 2. On failure, will call consumer_->OnAuthFailure(). |
// 3. On password change, will call consumer_->OnPasswordChangeDetected(). |
-class Authenticator : public base::RefCountedThreadSafe<Authenticator> { |
+class CHROMEOS_EXPORT Authenticator |
+ : public base::RefCountedThreadSafe<Authenticator> { |
public: |
explicit Authenticator(AuthStatusConsumer* consumer); |
@@ -44,8 +46,7 @@ class Authenticator : public base::RefCountedThreadSafe<Authenticator> { |
virtual void AuthenticateToUnlock(const UserContext& user_context) = 0; |
// Initiates supervised user login. |
- virtual void LoginAsSupervisedUser( |
- const UserContext& user_context) = 0; |
+ virtual void LoginAsSupervisedUser(const UserContext& user_context) = 0; |
// Initiates retail mode login. |
virtual void LoginRetailMode() = 0; |
@@ -79,8 +80,7 @@ class Authenticator : public base::RefCountedThreadSafe<Authenticator> { |
// Call this method to migrate the user's encrypted data |
// forward to use his new password. |old_password| is the password |
// his data was last encrypted with. |
- virtual void RecoverEncryptedData( |
- const std::string& old_password) = 0; |
+ virtual void RecoverEncryptedData(const std::string& old_password) = 0; |
// Call this method to erase the user's encrypted data |
// and create a new cryptohome. |
@@ -107,4 +107,4 @@ class Authenticator : public base::RefCountedThreadSafe<Authenticator> { |
} // namespace chromeos |
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
+#endif // CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |