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

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

Issue 2297573002: Implement gnome-keyring for OSCrypt (Closed)
Patch Set: removed thread checker Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_ 5 #ifndef COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_
6 #define COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_ 6 #define COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/single_thread_task_runner.h" 13
14 namespace base {
15 class SingleThreadTaskRunner;
16 } // namespace base
14 17
15 // An API for retrieving OSCrypt's password from the system's password storage 18 // An API for retrieving OSCrypt's password from the system's password storage
16 // service. 19 // service.
17 class KeyStorageLinux { 20 class KeyStorageLinux {
18 public: 21 public:
19 KeyStorageLinux() = default; 22 KeyStorageLinux() = default;
20 virtual ~KeyStorageLinux() = default; 23 virtual ~KeyStorageLinux() = default;
21 24
22 // Force OSCrypt to use a specific linux password store. 25 // Force OSCrypt to use a specific linux password store.
23 static void SetStore(const std::string& store_type); 26 static void SetStore(const std::string& store_type);
(...skipping 21 matching lines...) Expand all
45 // The name of the group, if any, containing the key. 48 // The name of the group, if any, containing the key.
46 static const char kFolderName[]; 49 static const char kFolderName[];
47 // The name of the entry with the encryption key. 50 // The name of the entry with the encryption key.
48 static const char kKey[]; 51 static const char kKey[];
49 52
50 private: 53 private:
51 DISALLOW_COPY_AND_ASSIGN(KeyStorageLinux); 54 DISALLOW_COPY_AND_ASSIGN(KeyStorageLinux);
52 }; 55 };
53 56
54 #endif // COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_ 57 #endif // COMPONENTS_OS_CRYPT_KEY_STORAGE_LINUX_H_
OLDNEW
« no previous file with comments | « components/os_crypt/key_storage_libsecret_unittest.cc ('k') | components/os_crypt/key_storage_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698