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

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

Issue 2734863004: wire PasswordProtectionService into PasswordReuseDetectionManager (Closed)
Patch Set: wire PasswordProtectionService into PasswordReuseDetectionManager Created 3 years, 9 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_reuse_detection_manager.h
diff --git a/components/password_manager/core/browser/password_reuse_detection_manager.h b/components/password_manager/core/browser/password_reuse_detection_manager.h
index eaf9384fd9931ac1f800539ca9eb8ad683e6a9a3..52437feac4159587f0ad97ab861d8493e74f9345 100644
--- a/components/password_manager/core/browser/password_reuse_detection_manager.h
+++ b/components/password_manager/core/browser/password_reuse_detection_manager.h
@@ -10,6 +10,10 @@
#include "components/password_manager/core/browser/password_reuse_detector_consumer.h"
#include "url/gurl.h"
+namespace safe_browsing {
+class PasswordProtectionService;
+}
+
namespace password_manager {
class PasswordManagerClient;
@@ -22,6 +26,11 @@ class PasswordReuseDetectionManager : public PasswordReuseDetectorConsumer {
explicit PasswordReuseDetectionManager(PasswordManagerClient* client);
~PasswordReuseDetectionManager() override;
+#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
+ void SetPasswordProtectionService(
+ base::WeakPtr<safe_browsing::PasswordProtectionService> pp_service);
+#endif
+
void DidNavigateMainFrame(const GURL& main_frame_url);
void OnKeyPressed(const base::string16& text);
@@ -33,6 +42,10 @@ class PasswordReuseDetectionManager : public PasswordReuseDetectorConsumer {
private:
PasswordManagerClient* client_;
+#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
+ base::WeakPtr<safe_browsing::PasswordProtectionService>
+ password_protection_service_;
+#endif
base::string16 input_characters_;
GURL main_frame_url_;

Powered by Google App Engine
This is Rietveld 408576698