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

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

Issue 335893002: Support to remove passwords by date_synced timestamp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vabr's comments Created 6 years, 6 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 6bb063dff17a2a65067d614c645ea6a9e88c2a89..f4fd83ea3b4d2fa8d07b313dc6acee49abd40338 100644
--- a/components/password_manager/core/browser/password_store.h
+++ b/components/password_manager/core/browser/password_store.h
@@ -142,6 +142,10 @@ class PasswordStore : protected PasswordStoreSync,
virtual void RemoveLoginsCreatedBetween(const base::Time& delete_begin,
const base::Time& delete_end);
+ // Removes all logins synced in the given date range.
+ virtual void RemoveLoginsSyncedBetween(base::Time delete_begin,
+ base::Time delete_end);
+
// 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
@@ -215,6 +219,11 @@ class PasswordStore : protected PasswordStoreSync,
virtual PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl(
const base::Time& delete_begin, const base::Time& delete_end) = 0;
+ // Synchronous implementation to remove the given logins.
+ virtual PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl(
+ base::Time delete_begin,
+ base::Time delete_end) = 0;
+
typedef base::Callback<void(const std::vector<autofill::PasswordForm*>&)>
ConsumerCallbackRunner; // Owns all PasswordForms in the vector.

Powered by Google App Engine
This is Rietveld 408576698