Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: components/password_manager/core/browser/password_store.h

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First draft Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698