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

Unified Diff: chromeos/cryptohome/cryptohome_parameters.h

Issue 488633003: Switch CryptohomeAuthenticator from MountAsync() to MountEx() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/cryptohome/OWNERS ('k') | chromeos/cryptohome/cryptohome_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cryptohome/cryptohome_parameters.h
diff --git a/chromeos/cryptohome/cryptohome_parameters.h b/chromeos/cryptohome/cryptohome_parameters.h
index 5e6bb2f18a41a995313f2e3252ced80f9ddf16d7..d74d5fc1f085341bd28d6fc04b1931c66485d98a 100644
--- a/chromeos/cryptohome/cryptohome_parameters.h
+++ b/chromeos/cryptohome/cryptohome_parameters.h
@@ -24,7 +24,10 @@ enum AuthKeyPrivileges {
// Identification of the user calling cryptohome method.
struct CHROMEOS_EXPORT Identification {
- explicit Identification(const std::string& user_id) : user_id(user_id) {}
+ explicit Identification(const std::string& user_id);
+
+ bool operator==(const Identification& other) const;
+
std::string user_id;
};
@@ -36,6 +39,9 @@ struct CHROMEOS_EXPORT KeyDefinition {
const std::string& label,
int /*AuthKeyPrivileges*/ privileges);
~KeyDefinition();
+
+ bool operator==(const KeyDefinition& other) const;
+
std::string label;
int revision;
@@ -51,6 +57,9 @@ struct CHROMEOS_EXPORT KeyDefinition {
struct CHROMEOS_EXPORT Authorization {
Authorization(const std::string& key, const std::string& label);
explicit Authorization(const KeyDefinition& key);
+
+ bool operator==(const Authorization& other) const;
+
std::string key;
std::string label;
};
@@ -61,6 +70,8 @@ class CHROMEOS_EXPORT MountParameters {
explicit MountParameters(bool ephemeral);
~MountParameters();
+ bool operator==(const MountParameters& other) const;
+
// If |true|, the mounted home dir will be backed by tmpfs. If |false|, the
// ephemeral users policy decides whether tmpfs or an encrypted directory is
// used as the backend.
« no previous file with comments | « chromeos/cryptohome/OWNERS ('k') | chromeos/cryptohome/cryptohome_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698