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

Side by Side Diff: components/os_crypt/key_storage_util_linux.h

Issue 2256633002: Add two more options for the --password-store switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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 unified diff | Download patch
« no previous file with comments | « components/os_crypt/key_storage_linux.cc ('k') | components/os_crypt/key_storage_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
6 #define COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
7
8 #include <string>
9
10 #include "base/nix/xdg_util.h"
11
12 namespace os_crypt {
13
14 // The supported Linux backends for storing passwords.
15 enum class SelectedLinuxBackend {
16 DEFER, // No selection
17 BASIC_TEXT,
18 GNOME_ANY, // GNOME_KEYRING or GNOME_LIBSECRET, whichever is available.
19 GNOME_KEYRING,
20 GNOME_LIBSECRET,
21 KWALLET,
22 KWALLET5,
23 };
24
25 // Decide which backend to target. |type| is checked first. If it does not
26 // match a supported backend, |desktop_env| will be used to decide.
27 // TODO(crbug/571003): This is exposed as a utility only for password manager to
28 // use. It should be merged into key_storage_linux, once no longer needed in
29 // password manager.
30 SelectedLinuxBackend SelectBackend(const std::string& type,
31 base::nix::DesktopEnvironment desktop_env);
32
33 } // namespace os_crypt
34
35 #endif // COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
OLDNEW
« no previous file with comments | « components/os_crypt/key_storage_linux.cc ('k') | components/os_crypt/key_storage_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698