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

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

Issue 9286003: Remove AsyncSetOwnerUser() from cryptohome library (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Ready to go. Created 8 years, 10 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
« 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual bool AsyncMountForBwsi(Delegate* callback) = 0; 68 virtual bool AsyncMountForBwsi(Delegate* callback) = 0;
69 69
70 // Asks cryptohomed to asynchronously try to find the cryptohome for 70 // Asks cryptohomed to asynchronously try to find the cryptohome for
71 // |user_email| and then nuke it. 71 // |user_email| and then nuke it.
72 virtual bool AsyncRemove(const std::string& user_email, 72 virtual bool AsyncRemove(const std::string& user_email,
73 Delegate* callback) = 0; 73 Delegate* callback) = 0;
74 74
75 // Asks cryptohomed if a drive is currently mounted. 75 // Asks cryptohomed if a drive is currently mounted.
76 virtual bool IsMounted() = 0; 76 virtual bool IsMounted() = 0;
77 77
78 // Passes cryptohomed the owner user. It is used to prevent
79 // deletion of the owner in low disk space cleanup (see above).
80 virtual bool AsyncSetOwnerUser(const std::string& username,
81 Delegate* callback) = 0;
82
83 // Wrappers of the functions for working with Tpm. 78 // Wrappers of the functions for working with Tpm.
84 79
85 // Returns whether Tpm is ready. 80 // Returns whether Tpm is ready.
86 virtual bool TpmIsReady() = 0; 81 virtual bool TpmIsReady() = 0;
87 82
88 // Returns whether Tpm is presented and enabled. 83 // Returns whether Tpm is presented and enabled.
89 virtual bool TpmIsEnabled() = 0; 84 virtual bool TpmIsEnabled() = 0;
90 85
91 // Returns whether device has already been owned. 86 // Returns whether device has already been owned.
92 virtual bool TpmIsOwned() = 0; 87 virtual bool TpmIsOwned() = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual std::string GetSystemSalt() = 0; 127 virtual std::string GetSystemSalt() = 0;
133 128
134 // Factory function, creates a new instance and returns ownership. 129 // Factory function, creates a new instance and returns ownership.
135 // For normal usage, access the singleton via CrosLibrary::Get(). 130 // For normal usage, access the singleton via CrosLibrary::Get().
136 static CryptohomeLibrary* GetImpl(bool stub); 131 static CryptohomeLibrary* GetImpl(bool stub);
137 }; 132 };
138 133
139 } // namespace chromeos 134 } // namespace chromeos
140 135
141 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ 136 #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