| 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_PASSWORD_STORE_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, | 108 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, |
| 109 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner); | 109 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner); |
| 110 | 110 |
| 111 // Reimplement this to add custom initialization. Always call this too. | 111 // Reimplement this to add custom initialization. Always call this too. |
| 112 virtual bool Init(); | 112 virtual bool Init(); |
| 113 | 113 |
| 114 // Adds the given PasswordForm to the secure password store asynchronously. | 114 // Adds the given PasswordForm to the secure password store asynchronously. |
| 115 virtual void AddLogin(const autofill::PasswordForm& form); | 115 virtual void AddLogin(const autofill::PasswordForm& form); |
| 116 | 116 |
| 117 // Updates the matching PasswordForm in the secure password store (async). | 117 // Updates the matching PasswordForm in the secure password store (async). |
| 118 void UpdateLogin(const autofill::PasswordForm& form); | 118 virtual void UpdateLogin(const autofill::PasswordForm& form); |
| 119 | 119 |
| 120 // Removes the matching PasswordForm from the secure password store (async). | 120 // Removes the matching PasswordForm from the secure password store (async). |
| 121 void RemoveLogin(const autofill::PasswordForm& form); | 121 void RemoveLogin(const autofill::PasswordForm& form); |
| 122 | 122 |
| 123 // Removes all logins created in the given date range. | 123 // Removes all logins created in the given date range. |
| 124 void RemoveLoginsCreatedBetween(const base::Time& delete_begin, | 124 void RemoveLoginsCreatedBetween(const base::Time& delete_begin, |
| 125 const base::Time& delete_end); | 125 const base::Time& delete_end); |
| 126 | 126 |
| 127 // Searches for a matching PasswordForm, and notifies |consumer| on | 127 // Searches for a matching PasswordForm, and notifies |consumer| on |
| 128 // completion. The request will be cancelled if the consumer is destroyed. | 128 // completion. The request will be cancelled if the consumer is destroyed. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 // The observers. | 274 // The observers. |
| 275 scoped_refptr<ObserverListThreadSafe<Observer> > observers_; | 275 scoped_refptr<ObserverListThreadSafe<Observer> > observers_; |
| 276 | 276 |
| 277 bool shutdown_called_; | 277 bool shutdown_called_; |
| 278 | 278 |
| 279 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 279 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ | 282 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ |
| OLD | NEW |