| 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" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "components/password_manager/core/browser/password_store_default.h" | 13 #include "components/password_manager/core/browser/password_store_default.h" |
| 14 | 14 |
| 15 class PrefService; | 15 class PrefService; |
| 16 | 16 |
| 17 namespace url { |
| 18 class Origin; |
| 19 } |
| 20 |
| 17 namespace user_prefs { | 21 namespace user_prefs { |
| 18 class PrefRegistrySyncable; | 22 class PrefRegistrySyncable; |
| 19 } | 23 } |
| 20 | 24 |
| 21 namespace password_manager { | 25 namespace password_manager { |
| 22 class LoginDatabase; | 26 class LoginDatabase; |
| 23 } | 27 } |
| 24 | 28 |
| 25 // PasswordStoreX is used on Linux and other non-Windows, non-Mac OS X | 29 // PasswordStoreX is used on Linux and other non-Windows, non-Mac OS X |
| 26 // operating systems. It uses a "native backend" to actually store the password | 30 // operating systems. It uses a "native backend" to actually store the password |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 94 |
| 91 ~PasswordStoreX() override; | 95 ~PasswordStoreX() override; |
| 92 | 96 |
| 93 // Implements PasswordStore interface. | 97 // Implements PasswordStore interface. |
| 94 password_manager::PasswordStoreChangeList AddLoginImpl( | 98 password_manager::PasswordStoreChangeList AddLoginImpl( |
| 95 const autofill::PasswordForm& form) override; | 99 const autofill::PasswordForm& form) override; |
| 96 password_manager::PasswordStoreChangeList UpdateLoginImpl( | 100 password_manager::PasswordStoreChangeList UpdateLoginImpl( |
| 97 const autofill::PasswordForm& form) override; | 101 const autofill::PasswordForm& form) override; |
| 98 password_manager::PasswordStoreChangeList RemoveLoginImpl( | 102 password_manager::PasswordStoreChangeList RemoveLoginImpl( |
| 99 const autofill::PasswordForm& form) override; | 103 const autofill::PasswordForm& form) override; |
| 104 password_manager::PasswordStoreChangeList RemoveLoginsByOriginAndTimeImpl( |
| 105 const url::Origin& origin, |
| 106 base::Time delete_begin, |
| 107 base::Time delete_end) override; |
| 100 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( | 108 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( |
| 101 base::Time delete_begin, | 109 base::Time delete_begin, |
| 102 base::Time delete_end) override; | 110 base::Time delete_end) override; |
| 103 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( | 111 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( |
| 104 base::Time delete_begin, | 112 base::Time delete_begin, |
| 105 base::Time delete_end) override; | 113 base::Time delete_end) override; |
| 106 ScopedVector<autofill::PasswordForm> FillMatchingLogins( | 114 ScopedVector<autofill::PasswordForm> FillMatchingLogins( |
| 107 const autofill::PasswordForm& form, | 115 const autofill::PasswordForm& form, |
| 108 AuthorizationPromptPolicy prompt_policy) override; | 116 AuthorizationPromptPolicy prompt_policy) override; |
| 109 bool FillAutofillableLogins( | 117 bool FillAutofillableLogins( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 134 // Whether we should allow falling back to the default store. If there is | 142 // Whether we should allow falling back to the default store. If there is |
| 135 // nothing to migrate, then the first attempt to use the native store will | 143 // nothing to migrate, then the first attempt to use the native store will |
| 136 // be the first time we try to use it and we should allow falling back. If | 144 // be the first time we try to use it and we should allow falling back. If |
| 137 // we have migrated successfully, then we do not allow falling back. | 145 // we have migrated successfully, then we do not allow falling back. |
| 138 bool allow_fallback_; | 146 bool allow_fallback_; |
| 139 | 147 |
| 140 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); | 148 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); |
| 141 }; | 149 }; |
| 142 | 150 |
| 143 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 151 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| OLD | NEW |