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

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

Issue 1929573002: Changed location of LibsecretLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: password_manager explicitly includes libsecret.h Created 4 years, 7 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
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
vabr (Chromium) 2016/04/28 07:53:21 nit: No (c), see http://dev.chromium.org/developer
cfroussios 2016/04/28 12:18:11 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_LIBSECRET_LOADER_H_
6 #define COMPONENTS_OS_CRYPT_LIBSECRET_LOADER_H_
7
8 #include <libsecret/secret.h>
9
10 #include <string>
11
12 #include "base/macros.h"
13
14 class LibsecretLoader {
15 public:
16 static decltype(&::secret_password_store_sync) secret_password_store_sync;
17 static decltype(&::secret_service_search_sync) secret_service_search_sync;
18 static decltype(&::secret_password_clear_sync) secret_password_clear_sync;
19 static decltype(&::secret_item_get_secret) secret_item_get_secret;
20 static decltype(&::secret_value_get_text) secret_value_get_text;
21 static decltype(&::secret_item_get_attributes) secret_item_get_attributes;
22 static decltype(&::secret_item_load_secret_sync) secret_item_load_secret_sync;
23 static decltype(&::secret_value_unref) secret_value_unref;
24
25 protected:
26 static bool LoadLibsecret();
27 static bool LibsecretIsAvailable();
28
29 static bool libsecret_loaded;
30
31 private:
32 struct FunctionInfo {
33 const char* name;
34 void** pointer;
35 };
36
37 static const FunctionInfo functions[];
38 };
vabr (Chromium) 2016/04/28 07:53:21 Please add DISALLOW_IMPLICIT_CONSTRUCTORS(Libsecre
cfroussios 2016/04/28 12:18:11 NativeBackendLibsecret inherits from LibsecretLoad
vabr (Chromium) 2016/04/28 12:44:25 It does not really make sense to derive from a sta
vabr (Chromium) 2016/04/28 14:42:12 Ping.
cfroussios 2016/04/28 16:26:57 The libsecret field needs to stay protected, so th
cfroussios 2016/04/28 16:26:57 Done.
vabr (Chromium) 2016/04/29 07:36:45 Acknowledged.
39
40 #endif // COMPONENTS_OS_CRYPT_LIBSECRET_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698