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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 virtual void ForwardLoginsResult(GetLoginsRequest* request); | 249 virtual void ForwardLoginsResult(GetLoginsRequest* request); |
250 | 250 |
251 // Log UMA stats for number of bulk deletions. | 251 // Log UMA stats for number of bulk deletions. |
252 void LogStatsForBulkDeletion(int num_deletions); | 252 void LogStatsForBulkDeletion(int num_deletions); |
253 | 253 |
254 // PasswordStoreSync: | 254 // PasswordStoreSync: |
255 // Called by WrapModificationTask() once the underlying data-modifying | 255 // Called by WrapModificationTask() once the underlying data-modifying |
256 // operation has been performed. Notifies observers that password store data | 256 // operation has been performed. Notifies observers that password store data |
257 // may have been changed. | 257 // may have been changed. |
258 virtual void NotifyLoginsChanged( | 258 virtual void NotifyLoginsChanged( |
259 const PasswordStoreChangeList& changes) override; | 259 const PasswordStoreChangeList& changes) OVERRIDE; |
260 | 260 |
261 // TaskRunner for tasks that run on the main thread (usually the UI thread). | 261 // TaskRunner for tasks that run on the main thread (usually the UI thread). |
262 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_; | 262 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_; |
263 | 263 |
264 // TaskRunner for the DB thread. By default, this is the task runner used for | 264 // TaskRunner for the DB thread. By default, this is the task runner used for |
265 // background tasks -- see |GetBackgroundTaskRunner|. | 265 // background tasks -- see |GetBackgroundTaskRunner|. |
266 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner_; | 266 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner_; |
267 | 267 |
268 private: | 268 private: |
269 // Schedule the given |func| to be run in the PasswordStore's own thread with | 269 // Schedule the given |func| to be run in the PasswordStore's own thread with |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 scoped_ptr<PasswordSyncableService> syncable_service_; | 301 scoped_ptr<PasswordSyncableService> syncable_service_; |
302 | 302 |
303 bool shutdown_called_; | 303 bool shutdown_called_; |
304 | 304 |
305 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 305 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace password_manager | 308 } // namespace password_manager |
309 | 309 |
310 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ | 310 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ |
OLD | NEW |