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

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

Issue 2846823002: Interface for sync password saving. (Closed)
Patch Set: comments fixes Created 3 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 0a0b915bbeff297767ce2c2b2f24dc5d56aa8f38..c5780235632b9ca861108b6b350800eb8e879749 100644
--- a/components/password_manager/core/browser/password_store.h
+++ b/components/password_manager/core/browser/password_store.h
@@ -241,6 +241,9 @@ class PasswordStore : protected PasswordStoreSync,
virtual void CheckReuse(const base::string16& input,
const std::string& domain,
PasswordReuseDetectorConsumer* consumer);
+
+ // Saves a hash of |password| for password reuse checking.
+ void SaveSyncPasswordHash(const base::string16& password);
#endif
protected:
@@ -402,6 +405,9 @@ class PasswordStore : protected PasswordStoreSync,
void CheckReuseImpl(std::unique_ptr<CheckReuseRequest> request,
const base::string16& input,
const std::string& domain);
+
+ // Synchronous implementation of SaveSyncPasswordHash().
+ void SaveSyncPasswordHashImpl(const base::string16& password);
#endif
// TaskRunner for tasks that run on the main thread (usually the UI thread).

Powered by Google App Engine
This is Rietveld 408576698