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: components/password_manager/core/browser/password_manager.h

Issue 256003003: Enable Automatic Passwords Saving (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // The embedder-level client. Must outlive this class. 164 // The embedder-level client. Must outlive this class.
165 PasswordManagerClient* const client_; 165 PasswordManagerClient* const client_;
166 166
167 // The platform-level driver. Must outlive this class. 167 // The platform-level driver. Must outlive this class.
168 PasswordManagerDriver* const driver_; 168 PasswordManagerDriver* const driver_;
169 169
170 // Set to false to disable the password manager (will no longer ask if you 170 // Set to false to disable the password manager (will no longer ask if you
171 // want to save passwords but will continue to fill passwords). 171 // want to save passwords but will continue to fill passwords).
172 BooleanPrefMember password_manager_enabled_; 172 BooleanPrefMember password_manager_enabled_;
173 173
174 // Set to true to save the password without prompting the user.
175 bool enable_automatic_passwords_saving_;
vabr (Chromium) 2014/04/28 09:13:14 nit: Drop this member variable, and just use clien
rchtara 2014/04/28 11:28:29 Done.
176
174 // Observers to be notified of LoginModel events. This is mutable to allow 177 // Observers to be notified of LoginModel events. This is mutable to allow
175 // notification in const member functions. 178 // notification in const member functions.
176 mutable ObserverList<LoginModelObserver> observers_; 179 mutable ObserverList<LoginModelObserver> observers_;
177 180
178 // Callbacks to be notified when a password form has been submitted. 181 // Callbacks to be notified when a password form has been submitted.
179 std::vector<PasswordSubmittedCallback> submission_callbacks_; 182 std::vector<PasswordSubmittedCallback> submission_callbacks_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 184 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
182 }; 185 };
183 186
184 } // namespace password_manager 187 } // namespace password_manager
185 188
186 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ 189 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698