OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |