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

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

Issue 10382086: Determine whether user is ephemeral when coming back from a crash (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // This interface defines the interaction with the ChromeOS cryptohome library 13 // This interface defines the interaction with the ChromeOS cryptohome library
14 // APIs. 14 // APIs.
15 class CryptohomeLibrary { 15 class CryptohomeLibrary {
16 public: 16 public:
17 CryptohomeLibrary(); 17 CryptohomeLibrary();
18 virtual ~CryptohomeLibrary(); 18 virtual ~CryptohomeLibrary();
19 19
20 // Asks cryptohomed if a drive is currently mounted. 20 // Asks cryptohomed if a drive is currently mounted.
21 virtual bool IsMounted() = 0; 21 virtual bool IsMounted() = 0;
22 22
23 // Asks cryptohomed whether a cryptohome is currently mounted for the given
24 // user and if so, whether the mount is ephemeral.
25 virtual bool IsMountedForUser(const std::string& username,
26 bool* is_mounted,
27 bool* is_ephemeral_mount) = 0;
28
23 // Wrappers of the functions for working with Tpm. 29 // Wrappers of the functions for working with Tpm.
24 30
25 // Returns whether Tpm is ready. 31 // Returns whether Tpm is ready.
26 virtual bool TpmIsReady() = 0; 32 virtual bool TpmIsReady() = 0;
27 33
28 // Returns whether Tpm is presented and enabled. 34 // Returns whether Tpm is presented and enabled.
29 virtual bool TpmIsEnabled() = 0; 35 virtual bool TpmIsEnabled() = 0;
30 36
31 // Returns whether device has already been owned. 37 // Returns whether device has already been owned.
32 virtual bool TpmIsOwned() = 0; 38 virtual bool TpmIsOwned() = 0;
(...skipping 28 matching lines...) Expand all
61 virtual std::string GetSystemSalt() = 0; 67 virtual std::string GetSystemSalt() = 0;
62 68
63 // Factory function, creates a new instance and returns ownership. 69 // Factory function, creates a new instance and returns ownership.
64 // For normal usage, access the singleton via CrosLibrary::Get(). 70 // For normal usage, access the singleton via CrosLibrary::Get().
65 static CryptohomeLibrary* GetImpl(bool stub); 71 static CryptohomeLibrary* GetImpl(bool stub);
66 }; 72 };
67 73
68 } // namespace chromeos 74 } // namespace chromeos
69 75
70 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ 76 #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') | chrome/browser/chromeos/login/user_manager_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698