OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_KWALLET_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/nix/xdg_util.h" | 15 #include "base/nix/xdg_util.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/password_manager/password_store_factory.h" | 17 #include "chrome/browser/password_manager/password_store_factory.h" |
18 #include "chrome/browser/password_manager/password_store_x.h" | 18 #include "chrome/browser/password_manager/password_store_x.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "components/os_crypt/kwallet_dbus.h" | 20 #include "components/os_crypt/kwallet_dbus.h" |
21 | 21 |
22 namespace autofill { | 22 namespace autofill { |
23 struct PasswordForm; | 23 struct PasswordForm; |
24 } | 24 } |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class Pickle; | 27 class Pickle; |
28 class PickleIterator; | |
29 class WaitableEvent; | 28 class WaitableEvent; |
30 } | 29 } |
31 | 30 |
32 // NativeBackend implementation using KWallet. | 31 // NativeBackend implementation using KWallet. |
33 class NativeBackendKWallet : public PasswordStoreX::NativeBackend { | 32 class NativeBackendKWallet : public PasswordStoreX::NativeBackend { |
34 public: | 33 public: |
35 NativeBackendKWallet(LocalProfileId id, | 34 NativeBackendKWallet(LocalProfileId id, |
36 base::nix::DesktopEnvironment desktop_env); | 35 base::nix::DesktopEnvironment desktop_env); |
37 | 36 |
38 ~NativeBackendKWallet() override; | 37 ~NativeBackendKWallet() override; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 145 |
147 // The name of the wallet we've opened. Set during Init(). | 146 // The name of the wallet we've opened. Set during Init(). |
148 std::string wallet_name_; | 147 std::string wallet_name_; |
149 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs. | 148 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs. |
150 const std::string app_name_; | 149 const std::string app_name_; |
151 | 150 |
152 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet); | 151 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet); |
153 }; | 152 }; |
154 | 153 |
155 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ | 154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
OLD | NEW |