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

Unified Diff: components/os_crypt/key_storage_linux.h

Issue 2150543002: OSCrypt supports encryption with KWallet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 5 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
Index: components/os_crypt/key_storage_linux.h
diff --git a/components/os_crypt/key_storage_linux.h b/components/os_crypt/key_storage_linux.h
index b8ef53bcf1c1e1cf1f4ceb5128855f41a5510402..2791d75633b4b8a264705c1db6663b11e0294ecb 100644
--- a/components/os_crypt/key_storage_linux.h
+++ b/components/os_crypt/key_storage_linux.h
@@ -20,6 +20,9 @@ class KeyStorageLinux {
// Force OSCrypt to use a specific linux password store.
static void SetStore(const std::string& store_type);
+ // The product name to use for permission prompts.
+ static void SetProductName(const std::string& product_name);
+
// Tries to load the appropriate key storage. Returns null if none succeed.
static std::unique_ptr<KeyStorageLinux> CreateService();
@@ -31,6 +34,11 @@ class KeyStorageLinux {
// Loads the key storage. Returns false if the service is not available.
virtual bool Init() = 0;
+ // The name of the group, if any, containing the key.
+ static const char kFolderName[];
+ // The name of the entry with the encryption key.
+ static const char kKey[];
+
private:
DISALLOW_COPY_AND_ASSIGN(KeyStorageLinux);
};

Powered by Google App Engine
This is Rietveld 408576698