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

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

Issue 2132063002: Implement origin-based deletion for password manager's auto-signin bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOGIN_DATABASE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // delete in either direction. 70 // delete in either direction.
71 bool RemoveLoginsCreatedBetween(base::Time delete_begin, 71 bool RemoveLoginsCreatedBetween(base::Time delete_begin,
72 base::Time delete_end); 72 base::Time delete_end);
73 73
74 // Removes all logins synced from |delete_begin| onwards (inclusive) and 74 // Removes all logins synced from |delete_begin| onwards (inclusive) and
75 // before |delete_end|. You may use a null Time value to do an unbounded 75 // before |delete_end|. You may use a null Time value to do an unbounded
76 // delete in either direction. 76 // delete in either direction.
77 bool RemoveLoginsSyncedBetween(base::Time delete_begin, 77 bool RemoveLoginsSyncedBetween(base::Time delete_begin,
78 base::Time delete_end); 78 base::Time delete_end);
79 79
80 // Sets the 'skip_zero_click' flag to 'true' for all logins. 80 // Sets the 'skip_zero_click' flag on all forms on |origin| to 'true'.
81 bool DisableAutoSignInForAllLogins(); 81 bool DisableAutoSignInForOrigin(const GURL& origin);
82 82
83 // All Get* methods below overwrite |forms| with the returned credentials. On 83 // All Get* methods below overwrite |forms| with the returned credentials. On
84 // success, those methods return true. 84 // success, those methods return true.
85 85
86 // Gets a list of credentials matching |form|, including blacklisted matches 86 // Gets a list of credentials matching |form|, including blacklisted matches
87 // and federated credentials. 87 // and federated credentials.
88 bool GetLogins(const autofill::PasswordForm& form, 88 bool GetLogins(const autofill::PasswordForm& form,
89 ScopedVector<autofill::PasswordForm>* forms) const 89 ScopedVector<autofill::PasswordForm>* forms) const
90 WARN_UNUSED_RESULT; 90 WARN_UNUSED_RESULT;
91 91
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // This is a temporary measure for migration the Keychain on Mac. 206 // This is a temporary measure for migration the Keychain on Mac.
207 // crbug.com/466638 207 // crbug.com/466638
208 bool clear_password_values_; 208 bool clear_password_values_;
209 209
210 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); 210 DISALLOW_COPY_AND_ASSIGN(LoginDatabase);
211 }; 211 };
212 212
213 } // namespace password_manager 213 } // namespace password_manager
214 214
215 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 215 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698