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

Unified Diff: chromeos/tpm_password_fetcher.h

Issue 738683002: Move chromeos/tpm_* to chromeos/tpm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the build Created 6 years 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
« no previous file with comments | « chromeos/tpm/tpm_token_loader.cc ('k') | chromeos/tpm_password_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/tpm_password_fetcher.h
diff --git a/chromeos/tpm_password_fetcher.h b/chromeos/tpm_password_fetcher.h
deleted file mode 100644
index 71a4fc2d3af9cf68ecb1c3b96e79eee502e3e9fa..0000000000000000000000000000000000000000
--- a/chromeos/tpm_password_fetcher.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 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 CHROMEOS_TPM_PASSWORD_FETCHER_H_
-#define CHROMEOS_TPM_PASSWORD_FETCHER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/weak_ptr.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/dbus/dbus_method_call_status.h"
-
-namespace chromeos {
-
-// Interface which TpmPasswordFetcher uses to notify that password has been
-// fetched.
-class CHROMEOS_EXPORT TpmPasswordFetcherDelegate {
- public:
- virtual ~TpmPasswordFetcherDelegate() {}
- virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
-};
-
-// Class for fetching TPM password from the Cryptohome.
-class CHROMEOS_EXPORT 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();
-
- TpmPasswordFetcherDelegate* delegate_;
-
- base::WeakPtrFactory<TpmPasswordFetcher> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(TpmPasswordFetcher);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_TPM_PASSWORD_FETCHER_H_
« no previous file with comments | « chromeos/tpm/tpm_token_loader.cc ('k') | chromeos/tpm_password_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698