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

Unified Diff: chrome/browser/chromeos/login/tpm_password_fetcher.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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: chrome/browser/chromeos/login/tpm_password_fetcher.h
diff --git a/chrome/browser/chromeos/login/tpm_password_fetcher.h b/chrome/browser/chromeos/login/tpm_password_fetcher.h
deleted file mode 100644
index 3aa96b2931c2a6ba19729aa1c181e9fda36dbbc9..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/tpm_password_fetcher.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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_TPM_PASSWORD_FETCHER_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_TPM_PASSWORD_FETCHER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/weak_ptr.h"
-#include "chromeos/dbus/dbus_method_call_status.h"
-
-namespace chromeos {
-
-// Interface which TpmPasswordFetcher uses to notify that password has been
-// fetched.
-class TpmPasswordFetcherDelegate {
- public:
- virtual ~TpmPasswordFetcherDelegate() {}
- virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
-};
-
-// Class for fetching TPM password from the Cryptohome.
-class TpmPasswordFetcher {
- public:
- // Creates fetcher with the given delegate to be notified every time fetching
- // is done.
- explicit TpmPasswordFetcher(TpmPasswordFetcherDelegate* delegate);
- ~TpmPasswordFetcher();
-
- // Fetches TPM password and stores the result. Also notifies |delegate_| with
- // OnPasswordFetched() call.
- void Fetch();
-
- private:
- // Used to implement Fetch().
- void OnTpmIsReady(DBusMethodCallStatus call_status, bool tpm_is_ready);
-
- // Used to implement Fetch().
- void OnTpmGetPassword(DBusMethodCallStatus call_status,
- const std::string& password);
-
- // Posts a task to call Fetch() later.
- void RescheduleFetch();
-
- base::WeakPtrFactory<TpmPasswordFetcher> weak_factory_;
- TpmPasswordFetcherDelegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(TpmPasswordFetcher);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_TPM_PASSWORD_FETCHER_H_
« no previous file with comments | « chrome/browser/chromeos/login/test_login_utils.cc ('k') | chrome/browser/chromeos/login/tpm_password_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698