| Index: components/password_manager/core/browser/password_store.h
|
| diff --git a/components/password_manager/core/browser/password_store.h b/components/password_manager/core/browser/password_store.h
|
| index 07510a4a8763a3d1940b9bf94979f249daa42552..a61f08e74ad72bb1bca07ec6db6106d0646cf716 100644
|
| --- a/components/password_manager/core/browser/password_store.h
|
| +++ b/components/password_manager/core/browser/password_store.h
|
| @@ -139,6 +139,10 @@ class PasswordStore : protected PasswordStoreSync,
|
| // consumer is destroyed.
|
| virtual void GetBlacklistLogins(PasswordStoreConsumer* consumer);
|
|
|
| + // Get the number of logins stored in the login database.
|
| + // TODO(lwchkg): make the task cancellable.
|
| + virtual void GetCountOfLogins(base::Callback<void(int)> callback);
|
| +
|
| // Reports usage metrics for the database. |sync_username| and
|
| // |custom_passphrase_sync_enabled| determine some of the UMA stats that
|
| // may be reported.
|
| @@ -237,6 +241,10 @@ class PasswordStore : protected PasswordStoreSync,
|
| AuthorizationPromptPolicy prompt_policy,
|
| scoped_ptr<GetLoginsRequest> request);
|
|
|
| + // Synchronous implementation provided by subclasses to count the number of
|
| + // logins in the database.
|
| + virtual int GetCountOfLoginsImpl() = 0;
|
| +
|
| // Synchronous implementation provided by subclasses to add the given login.
|
| virtual PasswordStoreChangeList AddLoginImpl(
|
| const autofill::PasswordForm& form) = 0;
|
|
|