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

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

Issue 1072413003: Add foundation for trimming the AffiliationDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 74ff469f51d9c978af08b50f22be4882832baa7a..c148a5f632c370b682da89ad2e6ed205ce80e71b 100644
--- a/components/password_manager/core/browser/password_store.h
+++ b/components/password_manager/core/browser/password_store.h
@@ -93,14 +93,20 @@ class PasswordStore : protected PasswordStoreSync,
// Removes the matching PasswordForm from the secure password store (async).
virtual void RemoveLogin(const autofill::PasswordForm& form);
- // Removes all logins created in the given date range.
+ // Removes all logins created in the given date range, and posts |completion|,
+ // if non-null, to the |main_thread_runner_| once done.
virtual void RemoveLoginsCreatedBetween(base::Time delete_begin,
- base::Time delete_end);
+ base::Time delete_end,
+ const base::Closure& completion);
// Removes all logins synced in the given date range.
virtual void RemoveLoginsSyncedBetween(base::Time delete_begin,
base::Time delete_end);
+ // Removes cached affiliation data that is no longer needed; provided that
+ // affiliation-based matching is enabled.
+ void TrimAffiliationCache();
+
// Searches for a matching PasswordForm, and notifies |consumer| on
// completion. The request will be cancelled if the consumer is destroyed.
// |prompt_policy| indicates whether it's permissible to prompt the user to
@@ -284,7 +290,8 @@ class PasswordStore : protected PasswordStoreSync,
void UpdateLoginInternal(const autofill::PasswordForm& form);
void RemoveLoginInternal(const autofill::PasswordForm& form);
void RemoveLoginsCreatedBetweenInternal(base::Time delete_begin,
- base::Time delete_end);
+ base::Time delete_end,
+ const base::Closure& completion);
void RemoveLoginsSyncedBetweenInternal(base::Time delete_begin,
base::Time delete_end);

Powered by Google App Engine
This is Rietveld 408576698