| OLD | NEW |
| 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_PASSWORD_STORE_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // delete in either direction. | 51 // delete in either direction. |
| 52 virtual bool RemoveLoginsCreatedBetween( | 52 virtual bool RemoveLoginsCreatedBetween( |
| 53 base::Time delete_begin, | 53 base::Time delete_begin, |
| 54 base::Time delete_end, | 54 base::Time delete_end, |
| 55 password_manager::PasswordStoreChangeList* changes) = 0; | 55 password_manager::PasswordStoreChangeList* changes) = 0; |
| 56 virtual bool RemoveLoginsSyncedBetween( | 56 virtual bool RemoveLoginsSyncedBetween( |
| 57 base::Time delete_begin, | 57 base::Time delete_begin, |
| 58 base::Time delete_end, | 58 base::Time delete_end, |
| 59 password_manager::PasswordStoreChangeList* changes) = 0; | 59 password_manager::PasswordStoreChangeList* changes) = 0; |
| 60 | 60 |
| 61 // The three methods below overwrite |forms| with all stored credentials |
| 62 // matching |form|, all stored non-blacklisted credentials, and all stored |
| 63 // blacklisted credentials, respectively. On success, they return true, |
| 64 // otherwise they return false and erase |forms|. |
| 61 virtual bool GetLogins(const autofill::PasswordForm& form, | 65 virtual bool GetLogins(const autofill::PasswordForm& form, |
| 62 ScopedVector<autofill::PasswordForm>* forms) = 0; | 66 ScopedVector<autofill::PasswordForm>* forms) = 0; |
| 63 virtual bool GetAutofillableLogins( | 67 virtual bool GetAutofillableLogins( |
| 64 ScopedVector<autofill::PasswordForm>* forms) = 0; | 68 ScopedVector<autofill::PasswordForm>* forms) = 0; |
| 65 virtual bool GetBlacklistLogins( | 69 virtual bool GetBlacklistLogins( |
| 66 ScopedVector<autofill::PasswordForm>* forms) = 0; | 70 ScopedVector<autofill::PasswordForm>* forms) = 0; |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 // Takes ownership of |login_db| and |backend|. |backend| may be NULL in which | 73 // Takes ownership of |login_db| and |backend|. |backend| may be NULL in which |
| 70 // case this PasswordStoreX will act the same as PasswordStoreDefault. | 74 // case this PasswordStoreX will act the same as PasswordStoreDefault. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Whether we should allow falling back to the default store. If there is | 133 // Whether we should allow falling back to the default store. If there is |
| 130 // nothing to migrate, then the first attempt to use the native store will | 134 // nothing to migrate, then the first attempt to use the native store will |
| 131 // be the first time we try to use it and we should allow falling back. If | 135 // be the first time we try to use it and we should allow falling back. If |
| 132 // we have migrated successfully, then we do not allow falling back. | 136 // we have migrated successfully, then we do not allow falling back. |
| 133 bool allow_fallback_; | 137 bool allow_fallback_; |
| 134 | 138 |
| 135 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); | 139 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); |
| 136 }; | 140 }; |
| 137 | 141 |
| 138 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 142 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| OLD | NEW |