Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
Lei Zhang
2016/08/17 14:36:25
Probably good to put the bits in this file inside
cfroussios
2016/08/17 15:04:33
Done.
| |
| 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 // The supported Linux backends for storing passwords. | |
| 13 enum class SelectedLinuxBackend { | |
| 14 DEFER, // No selection | |
| 15 BASIC_TEXT, | |
| 16 GNOME_ANY, // GNOME_KEYRING or GNOME_LIBSECRET, whichever is available. | |
| 17 GNOME_KEYRING, | |
| 18 GNOME_LIBSECRET, | |
| 19 KWALLET, | |
| 20 KWALLET5, | |
| 21 }; | |
| 22 | |
| 23 // Decide which backend to target. |command| is checked first. If it does not | |
|
Lei Zhang
2016/08/17 14:36:25
Maybe s/command/type/ ?
cfroussios
2016/08/17 15:04:33
Done.
| |
| 24 // match a supported backend, |desktop_env| will be used to decide. | |
| 25 // TODO(crbug/571003): This is exposed as a utility only for password manager to | |
| 26 // use. It should be merged in key_storage_linux, once no longer needed in | |
| 27 // password manager. | |
| 28 SelectedLinuxBackend SelectBackend(const std::string& command, | |
| 29 base::nix::DesktopEnvironment desktop_env); | |
| 30 | |
| 31 #endif // COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_ | |
| OLD | NEW |