| 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_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 FRIEND_TEST_ALL_PREFIXES(PasswordStoreTest, IgnoreOldWwwGoogleLogins); | 175 FRIEND_TEST_ALL_PREFIXES(PasswordStoreTest, IgnoreOldWwwGoogleLogins); |
| 176 | 176 |
| 177 virtual ~PasswordStore(); | 177 virtual ~PasswordStore(); |
| 178 | 178 |
| 179 // Schedules the given |task| to be run on the PasswordStore's TaskRunner. | 179 // Schedules the given |task| to be run on the PasswordStore's TaskRunner. |
| 180 bool ScheduleTask(const base::Closure& task); | 180 bool ScheduleTask(const base::Closure& task); |
| 181 | 181 |
| 182 // Get the TaskRunner to use for PasswordStore background tasks. | 182 // Get the TaskRunner to use for PasswordStore background tasks. |
| 183 // By default, a SingleThreadTaskRunner on the DB thread is used, but | 183 // By default, a SingleThreadTaskRunner on the DB thread is used, but |
| 184 // subclasses can override. | 184 // subclasses can override. |
| 185 virtual scoped_refptr<base::SequencedTaskRunner> GetBackgroundTaskRunner(); | 185 virtual scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner(); |
| 186 | 186 |
| 187 // These will be run in PasswordStore's own thread. | 187 // These will be run in PasswordStore's own thread. |
| 188 // Synchronous implementation that reports usage metrics. | 188 // Synchronous implementation that reports usage metrics. |
| 189 virtual void ReportMetricsImpl() = 0; | 189 virtual void ReportMetricsImpl() = 0; |
| 190 // Synchronous implementation to add the given login. | 190 // Synchronous implementation to add the given login. |
| 191 virtual void AddLoginImpl(const autofill::PasswordForm& form) = 0; | 191 virtual void AddLoginImpl(const autofill::PasswordForm& form) = 0; |
| 192 // Synchronous implementation to update the given login. | 192 // Synchronous implementation to update the given login. |
| 193 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) = 0; | 193 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) = 0; |
| 194 // Synchronous implementation to remove the given login. | 194 // Synchronous implementation to remove the given login. |
| 195 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) = 0; | 195 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) = 0; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 PasswordStore::GetLoginsRequest* request, | 268 PasswordStore::GetLoginsRequest* request, |
| 269 const std::vector<autofill::PasswordForm*>& matched_forms); | 269 const std::vector<autofill::PasswordForm*>& matched_forms); |
| 270 | 270 |
| 271 // The observers. | 271 // The observers. |
| 272 ObserverList<Observer> observers_; | 272 ObserverList<Observer> observers_; |
| 273 | 273 |
| 274 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 274 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 277 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| OLD | NEW |