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

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_x.h

Issue 682613003: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 namespace dbus { 28 namespace dbus {
29 class Bus; 29 class Bus;
30 class ObjectProxy; 30 class ObjectProxy;
31 } 31 }
32 32
33 // NativeBackend implementation using KWallet. 33 // NativeBackend implementation using KWallet.
34 class NativeBackendKWallet : public PasswordStoreX::NativeBackend { 34 class NativeBackendKWallet : public PasswordStoreX::NativeBackend {
35 public: 35 public:
36 explicit NativeBackendKWallet(LocalProfileId id); 36 explicit NativeBackendKWallet(LocalProfileId id);
37 37
38 virtual ~NativeBackendKWallet(); 38 ~NativeBackendKWallet() override;
39 39
40 virtual bool Init() override; 40 bool Init() override;
41 41
42 // Implements NativeBackend interface. 42 // Implements NativeBackend interface.
43 virtual password_manager::PasswordStoreChangeList AddLogin( 43 password_manager::PasswordStoreChangeList AddLogin(
44 const autofill::PasswordForm& form) override; 44 const autofill::PasswordForm& form) override;
45 virtual bool UpdateLogin( 45 bool UpdateLogin(const autofill::PasswordForm& form,
46 const autofill::PasswordForm& form, 46 password_manager::PasswordStoreChangeList* changes) override;
47 password_manager::PasswordStoreChangeList* changes) override; 47 bool RemoveLogin(const autofill::PasswordForm& form) override;
48 virtual bool RemoveLogin(const autofill::PasswordForm& form) override; 48 bool RemoveLoginsCreatedBetween(
49 virtual bool RemoveLoginsCreatedBetween(
50 base::Time delete_begin, 49 base::Time delete_begin,
51 base::Time delete_end, 50 base::Time delete_end,
52 password_manager::PasswordStoreChangeList* changes) override; 51 password_manager::PasswordStoreChangeList* changes) override;
53 virtual bool RemoveLoginsSyncedBetween( 52 bool RemoveLoginsSyncedBetween(
54 base::Time delete_begin, 53 base::Time delete_begin,
55 base::Time delete_end, 54 base::Time delete_end,
56 password_manager::PasswordStoreChangeList* changes) override; 55 password_manager::PasswordStoreChangeList* changes) override;
57 virtual bool GetLogins(const autofill::PasswordForm& form, 56 bool GetLogins(const autofill::PasswordForm& form,
58 PasswordFormList* forms) override; 57 PasswordFormList* forms) override;
59 virtual bool GetAutofillableLogins(PasswordFormList* forms) override; 58 bool GetAutofillableLogins(PasswordFormList* forms) override;
60 virtual bool GetBlacklistLogins(PasswordFormList* forms) override; 59 bool GetBlacklistLogins(PasswordFormList* forms) override;
61 60
62 protected: 61 protected:
63 // Invalid handle returned by WalletHandle(). 62 // Invalid handle returned by WalletHandle().
64 static const int kInvalidKWalletHandle = -1; 63 static const int kInvalidKWalletHandle = -1;
65 64
66 // Internally used by Init(), but also for testing to provide a mock bus. 65 // Internally used by Init(), but also for testing to provide a mock bus.
67 bool InitWithBus(scoped_refptr<dbus::Bus> optional_bus); 66 bool InitWithBus(scoped_refptr<dbus::Bus> optional_bus);
68 67
69 // Deserializes a list of PasswordForms from the wallet. 68 // Deserializes a list of PasswordForms from the wallet.
70 static void DeserializeValue(const std::string& signon_realm, 69 static void DeserializeValue(const std::string& signon_realm,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 154
156 // The name of the wallet we've opened. Set during Init(). 155 // The name of the wallet we've opened. Set during Init().
157 std::string wallet_name_; 156 std::string wallet_name_;
158 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs. 157 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs.
159 const std::string app_name_; 158 const std::string app_name_;
160 159
161 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet); 160 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet);
162 }; 161 };
163 162
164 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ 163 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698