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

Side by Side Diff: chromeos/dbus/fake_cryptohome_client.h

Issue 26407002: Add support for the Pkcs11GetTpmTokenInfoForUser cryptohome call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual bool CallTpmIsBeingOwnedAndBlock(bool* owning) OVERRIDE; 63 virtual bool CallTpmIsBeingOwnedAndBlock(bool* owning) OVERRIDE;
64 virtual void TpmCanAttemptOwnership( 64 virtual void TpmCanAttemptOwnership(
65 const VoidDBusMethodCallback& callback) OVERRIDE; 65 const VoidDBusMethodCallback& callback) OVERRIDE;
66 virtual void TpmClearStoredPassword( 66 virtual void TpmClearStoredPassword(
67 const VoidDBusMethodCallback& callback) OVERRIDE; 67 const VoidDBusMethodCallback& callback) OVERRIDE;
68 virtual bool CallTpmClearStoredPasswordAndBlock() OVERRIDE; 68 virtual bool CallTpmClearStoredPasswordAndBlock() OVERRIDE;
69 virtual void Pkcs11IsTpmTokenReady( 69 virtual void Pkcs11IsTpmTokenReady(
70 const BoolDBusMethodCallback& callback) OVERRIDE; 70 const BoolDBusMethodCallback& callback) OVERRIDE;
71 virtual void Pkcs11GetTpmTokenInfo( 71 virtual void Pkcs11GetTpmTokenInfo(
72 const Pkcs11GetTpmTokenInfoCallback& callback) OVERRIDE; 72 const Pkcs11GetTpmTokenInfoCallback& callback) OVERRIDE;
73 virtual void Pkcs11GetTpmTokenInfoForUser(
74 const std::string& username,
75 const Pkcs11GetTpmTokenInfoCallback& callback) OVERRIDE;
73 virtual bool InstallAttributesGet(const std::string& name, 76 virtual bool InstallAttributesGet(const std::string& name,
74 std::vector<uint8>* value, 77 std::vector<uint8>* value,
75 bool* successful) OVERRIDE; 78 bool* successful) OVERRIDE;
76 virtual bool InstallAttributesSet(const std::string& name, 79 virtual bool InstallAttributesSet(const std::string& name,
77 const std::vector<uint8>& value, 80 const std::vector<uint8>& value,
78 bool* successful) OVERRIDE; 81 bool* successful) OVERRIDE;
79 virtual bool InstallAttributesFinalize(bool* successful) OVERRIDE; 82 virtual bool InstallAttributesFinalize(bool* successful) OVERRIDE;
80 virtual void InstallAttributesIsReady( 83 virtual void InstallAttributesIsReady(
81 const BoolDBusMethodCallback& callback) OVERRIDE; 84 const BoolDBusMethodCallback& callback) OVERRIDE;
82 virtual bool InstallAttributesIsInvalid(bool* is_invalid) OVERRIDE; 85 virtual bool InstallAttributesIsInvalid(bool* is_invalid) OVERRIDE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 std::map<std::string, std::vector<uint8> > install_attrs_; 167 std::map<std::string, std::vector<uint8> > install_attrs_;
165 bool locked_; 168 bool locked_;
166 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; 169 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_;
167 170
168 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); 171 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient);
169 }; 172 };
170 173
171 } // namespace chromeos 174 } // namespace chromeos
172 175
173 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 176 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698