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

Unified Diff: chromeos/login/auth/authenticator.h

Issue 391373002: Refactoring : Move AuthAttempt and Authenticators to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 6 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 side-by-side diff with in-line comments
Download patch
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 4078463af9f76c7a2a0b277de78d34e7d2b50f1f..7436204a83574dfb62f0814fd2339ff3042882c7 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 locally managed user login.
- virtual void LoginAsLocallyManagedUser(
- const UserContext& user_context) = 0;
+ virtual void LoginAsLocallyManagedUser(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_

Powered by Google App Engine
This is Rietveld 408576698