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

Side by Side Diff: components/password_manager/core/browser/password_manager.h

Issue 380713003: PasswordManager - update "password_manager_enabled_" pref name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trybots failure (rebase was needed) Created 6 years, 5 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Scoped in case PasswordManager gets deleted (e.g tab closes) between the 176 // Scoped in case PasswordManager gets deleted (e.g tab closes) between the
177 // time a user submits a login form and gets to the next page. 177 // time a user submits a login form and gets to the next page.
178 scoped_ptr<PasswordFormManager> provisional_save_manager_; 178 scoped_ptr<PasswordFormManager> provisional_save_manager_;
179 179
180 // The embedder-level client. Must outlive this class. 180 // The embedder-level client. Must outlive this class.
181 PasswordManagerClient* const client_; 181 PasswordManagerClient* const client_;
182 182
183 // The platform-level driver. Must outlive this class. 183 // The platform-level driver. Must outlive this class.
184 PasswordManagerDriver* const driver_; 184 PasswordManagerDriver* const driver_;
185 185
186 // Set to false to disable the password manager (will no longer ask if you 186 // Set to false to disable password saving (will no longer ask if you
187 // want to save passwords but will continue to fill passwords). 187 // want to save passwords but will continue to fill passwords).
188 BooleanPrefMember password_manager_enabled_; 188 BooleanPrefMember saving_passwords_enabled_;
189 189
190 // Observers to be notified of LoginModel events. This is mutable to allow 190 // Observers to be notified of LoginModel events. This is mutable to allow
191 // notification in const member functions. 191 // notification in const member functions.
192 mutable ObserverList<LoginModelObserver> observers_; 192 mutable ObserverList<LoginModelObserver> observers_;
193 193
194 // Callbacks to be notified when a password form has been submitted. 194 // Callbacks to be notified when a password form has been submitted.
195 std::vector<PasswordSubmittedCallback> submission_callbacks_; 195 std::vector<PasswordSubmittedCallback> submission_callbacks_;
196 196
197 // Records all visible forms seen during a page load, in all frames of the 197 // Records all visible forms seen during a page load, in all frames of the
198 // page. When the page stops loading, the password manager checks if one of 198 // page. When the page stops loading, the password manager checks if one of
199 // the recorded forms matches the login form from the previous page 199 // the recorded forms matches the login form from the previous page
200 // (to see if the login was a failure), and clears the vector. 200 // (to see if the login was a failure), and clears the vector.
201 std::vector<autofill::PasswordForm> all_visible_forms_; 201 std::vector<autofill::PasswordForm> all_visible_forms_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 203 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
204 }; 204 };
205 205
206 } // namespace password_manager 206 } // namespace password_manager
207 207
208 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ 208 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698