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

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

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 (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_GNOME_X_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_
7 7
8 // libgnome-keyring has been deprecated in favor of libsecret. 8 // libgnome-keyring has been deprecated in favor of libsecret.
9 // See: https://mail.gnome.org/archives/commits-list/2013-October/msg08876.html 9 // See: https://mail.gnome.org/archives/commits-list/2013-October/msg08876.html
10 // 10 //
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 }; 81 };
82 82
83 // NativeBackend implementation using GNOME Keyring. 83 // NativeBackend implementation using GNOME Keyring.
84 class NativeBackendGnome : public PasswordStoreX::NativeBackend, 84 class NativeBackendGnome : public PasswordStoreX::NativeBackend,
85 public GnomeKeyringLoader { 85 public GnomeKeyringLoader {
86 public: 86 public:
87 explicit NativeBackendGnome(LocalProfileId id); 87 explicit NativeBackendGnome(LocalProfileId id);
88 88
89 virtual ~NativeBackendGnome(); 89 virtual ~NativeBackendGnome();
90 90
91 virtual bool Init() OVERRIDE; 91 virtual bool Init() override;
92 92
93 // Implements NativeBackend interface. 93 // Implements NativeBackend interface.
94 virtual password_manager::PasswordStoreChangeList AddLogin( 94 virtual password_manager::PasswordStoreChangeList AddLogin(
95 const autofill::PasswordForm& form) OVERRIDE; 95 const autofill::PasswordForm& form) override;
96 virtual bool UpdateLogin( 96 virtual bool UpdateLogin(
97 const autofill::PasswordForm& form, 97 const autofill::PasswordForm& form,
98 password_manager::PasswordStoreChangeList* changes) OVERRIDE; 98 password_manager::PasswordStoreChangeList* changes) override;
99 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; 99 virtual bool RemoveLogin(const autofill::PasswordForm& form) override;
100 virtual bool RemoveLoginsCreatedBetween( 100 virtual bool RemoveLoginsCreatedBetween(
101 base::Time delete_begin, 101 base::Time delete_begin,
102 base::Time delete_end, 102 base::Time delete_end,
103 password_manager::PasswordStoreChangeList* changes) OVERRIDE; 103 password_manager::PasswordStoreChangeList* changes) override;
104 virtual bool RemoveLoginsSyncedBetween( 104 virtual bool RemoveLoginsSyncedBetween(
105 base::Time delete_begin, 105 base::Time delete_begin,
106 base::Time delete_end, 106 base::Time delete_end,
107 password_manager::PasswordStoreChangeList* changes) OVERRIDE; 107 password_manager::PasswordStoreChangeList* changes) override;
108 virtual bool GetLogins(const autofill::PasswordForm& form, 108 virtual bool GetLogins(const autofill::PasswordForm& form,
109 PasswordFormList* forms) OVERRIDE; 109 PasswordFormList* forms) override;
110 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; 110 virtual bool GetAutofillableLogins(PasswordFormList* forms) override;
111 virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE; 111 virtual bool GetBlacklistLogins(PasswordFormList* forms) override;
112 112
113 private: 113 private:
114 enum TimestampToCompare { 114 enum TimestampToCompare {
115 CREATION_TIMESTAMP, 115 CREATION_TIMESTAMP,
116 SYNC_TIMESTAMP, 116 SYNC_TIMESTAMP,
117 }; 117 };
118 118
119 // Adds a login form without checking for one to replace first. 119 // Adds a login form without checking for one to replace first.
120 bool RawAddLogin(const autofill::PasswordForm& form); 120 bool RawAddLogin(const autofill::PasswordForm& form);
121 121
(...skipping 23 matching lines...) Expand all
145 // The local profile id, used to generate the app string. 145 // The local profile id, used to generate the app string.
146 const LocalProfileId profile_id_; 146 const LocalProfileId profile_id_;
147 147
148 // The app string, possibly based on the local profile id. 148 // The app string, possibly based on the local profile id.
149 std::string app_string_; 149 std::string app_string_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); 151 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome);
152 }; 152 };
153 153
154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ 154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698