| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // delete in either direction. | 62 // delete in either direction. |
| 63 virtual bool RemoveLoginsCreatedBetween( | 63 virtual bool RemoveLoginsCreatedBetween( |
| 64 base::Time delete_begin, | 64 base::Time delete_begin, |
| 65 base::Time delete_end, | 65 base::Time delete_end, |
| 66 password_manager::PasswordStoreChangeList* changes) = 0; | 66 password_manager::PasswordStoreChangeList* changes) = 0; |
| 67 virtual bool RemoveLoginsSyncedBetween( | 67 virtual bool RemoveLoginsSyncedBetween( |
| 68 base::Time delete_begin, | 68 base::Time delete_begin, |
| 69 base::Time delete_end, | 69 base::Time delete_end, |
| 70 password_manager::PasswordStoreChangeList* changes) = 0; | 70 password_manager::PasswordStoreChangeList* changes) = 0; |
| 71 | 71 |
| 72 // Sets the 'skip_zero_click' flag to 'true' for all logins in the database. | 72 // Sets the 'skip_zero_click' flag to 'true' for all logins in the database |
| 73 virtual bool DisableAutoSignInForAllLogins( | 73 // that match |origin_filter|. |
| 74 virtual bool DisableAutoSignInForOrigins( |
| 75 const base::Callback<bool(const GURL&)>& origin_filter, |
| 74 password_manager::PasswordStoreChangeList* changes) = 0; | 76 password_manager::PasswordStoreChangeList* changes) = 0; |
| 75 | 77 |
| 76 // The three methods below overwrite |forms| with all stored credentials | 78 // The three methods below overwrite |forms| with all stored credentials |
| 77 // matching |form|, all stored non-blacklisted credentials, and all stored | 79 // matching |form|, all stored non-blacklisted credentials, and all stored |
| 78 // blacklisted credentials, respectively. On success, they return true. | 80 // blacklisted credentials, respectively. On success, they return true. |
| 79 virtual bool GetLogins(const autofill::PasswordForm& form, | 81 virtual bool GetLogins(const autofill::PasswordForm& form, |
| 80 ScopedVector<autofill::PasswordForm>* forms) | 82 ScopedVector<autofill::PasswordForm>* forms) |
| 81 WARN_UNUSED_RESULT = 0; | 83 WARN_UNUSED_RESULT = 0; |
| 82 virtual bool GetAutofillableLogins( | 84 virtual bool GetAutofillableLogins( |
| 83 ScopedVector<autofill::PasswordForm>* forms) WARN_UNUSED_RESULT = 0; | 85 ScopedVector<autofill::PasswordForm>* forms) WARN_UNUSED_RESULT = 0; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 109 password_manager::PasswordStoreChangeList RemoveLoginsByURLAndTimeImpl( | 111 password_manager::PasswordStoreChangeList RemoveLoginsByURLAndTimeImpl( |
| 110 const base::Callback<bool(const GURL&)>& url_filter, | 112 const base::Callback<bool(const GURL&)>& url_filter, |
| 111 base::Time delete_begin, | 113 base::Time delete_begin, |
| 112 base::Time delete_end) override; | 114 base::Time delete_end) override; |
| 113 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( | 115 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( |
| 114 base::Time delete_begin, | 116 base::Time delete_begin, |
| 115 base::Time delete_end) override; | 117 base::Time delete_end) override; |
| 116 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( | 118 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( |
| 117 base::Time delete_begin, | 119 base::Time delete_begin, |
| 118 base::Time delete_end) override; | 120 base::Time delete_end) override; |
| 119 password_manager::PasswordStoreChangeList DisableAutoSignInForAllLoginsImpl() | 121 password_manager::PasswordStoreChangeList DisableAutoSignInForOriginsImpl( |
| 120 override; | 122 const base::Callback<bool(const GURL&)>& origin_filter) override; |
| 121 ScopedVector<autofill::PasswordForm> FillMatchingLogins( | 123 ScopedVector<autofill::PasswordForm> FillMatchingLogins( |
| 122 const autofill::PasswordForm& form) override; | 124 const autofill::PasswordForm& form) override; |
| 123 bool FillAutofillableLogins( | 125 bool FillAutofillableLogins( |
| 124 ScopedVector<autofill::PasswordForm>* forms) override; | 126 ScopedVector<autofill::PasswordForm>* forms) override; |
| 125 bool FillBlacklistLogins( | 127 bool FillBlacklistLogins( |
| 126 ScopedVector<autofill::PasswordForm>* forms) override; | 128 ScopedVector<autofill::PasswordForm>* forms) override; |
| 127 | 129 |
| 128 // Check to see whether migration is necessary, and perform it if so. | 130 // Check to see whether migration is necessary, and perform it if so. |
| 129 void CheckMigration(); | 131 void CheckMigration(); |
| 130 | 132 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 148 // Whether we should allow falling back to the default store. If there is | 150 // Whether we should allow falling back to the default store. If there is |
| 149 // nothing to migrate, then the first attempt to use the native store will | 151 // nothing to migrate, then the first attempt to use the native store will |
| 150 // be the first time we try to use it and we should allow falling back. If | 152 // be the first time we try to use it and we should allow falling back. If |
| 151 // we have migrated successfully, then we do not allow falling back. | 153 // we have migrated successfully, then we do not allow falling back. |
| 152 bool allow_fallback_; | 154 bool allow_fallback_; |
| 153 | 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); | 156 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 159 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| OLD | NEW |