OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "chrome/browser/password_manager/password_store_factory.h" | 14 #include "chrome/browser/password_manager/password_store_factory.h" |
15 #include "chrome/browser/password_manager/password_store_x.h" | 15 #include "chrome/browser/password_manager/password_store_x.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "components/os_crypt/libsecret_util_posix.h" | 17 #include "components/os_crypt/libsecret_util_linux.h" |
18 | 18 |
19 namespace autofill { | 19 namespace autofill { |
20 struct PasswordForm; | 20 struct PasswordForm; |
21 } | 21 } |
22 | 22 |
23 class NativeBackendLibsecret : public PasswordStoreX::NativeBackend { | 23 class NativeBackendLibsecret : public PasswordStoreX::NativeBackend { |
24 public: | 24 public: |
25 explicit NativeBackendLibsecret(LocalProfileId id); | 25 explicit NativeBackendLibsecret(LocalProfileId id); |
26 | 26 |
27 ~NativeBackendLibsecret() override; | 27 ~NativeBackendLibsecret() override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 GList* found, | 100 GList* found, |
101 const autofill::PasswordForm* lookup_form); | 101 const autofill::PasswordForm* lookup_form); |
102 | 102 |
103 // The app string, possibly based on the local profile id. | 103 // The app string, possibly based on the local profile id. |
104 std::string app_string_; | 104 std::string app_string_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(NativeBackendLibsecret); | 106 DISALLOW_COPY_AND_ASSIGN(NativeBackendLibsecret); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ | 109 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_LIBSECRET_H_ |
OLD | NEW |