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

Side by Side Diff: chrome/browser/chromeos/cros/cryptohome_library.h

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed Ken's nits. Created 9 years, 8 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 | « no previous file | chrome/browser/chromeos/cros/cryptohome_library.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Return value is true if password was successfully acquired. 125 // Return value is true if password was successfully acquired.
126 virtual bool TpmGetPassword(std::string* password) = 0; 126 virtual bool TpmGetPassword(std::string* password) = 0;
127 127
128 // Attempts to start owning (if device isn't owned and isn't being owned). 128 // Attempts to start owning (if device isn't owned and isn't being owned).
129 virtual void TpmCanAttemptOwnership() = 0; 129 virtual void TpmCanAttemptOwnership() = 0;
130 130
131 // Clears Tpm password. Password should be cleared after it was generated and 131 // Clears Tpm password. Password should be cleared after it was generated and
132 // shown to user. 132 // shown to user.
133 virtual void TpmClearStoredPassword() = 0; 133 virtual void TpmClearStoredPassword() = 0;
134 134
135 virtual bool InstallAttributesGet(const std::string& name,
136 std::string* value) = 0;
137 virtual bool InstallAttributesSet(const std::string& name,
138 const std::string& value) = 0;
139 virtual int InstallAttributesCount() = 0;
140 virtual bool InstallAttributesFinalize() = 0;
141 virtual bool InstallAttributesIsReady() = 0;
142 virtual bool InstallAttributesIsSecure() = 0;
143 virtual bool InstallAttributesIsInvalid() = 0;
144 virtual bool InstallAttributesIsFirstInstall() = 0;
145
135 // Factory function, creates a new instance and returns ownership. 146 // Factory function, creates a new instance and returns ownership.
136 // For normal usage, access the singleton via CrosLibrary::Get(). 147 // For normal usage, access the singleton via CrosLibrary::Get().
137 static CryptohomeLibrary* GetImpl(bool stub); 148 static CryptohomeLibrary* GetImpl(bool stub);
138 }; 149 };
139 150
140 } // namespace chromeos 151 } // namespace chromeos
141 152
142 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ 153 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cryptohome_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698