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

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

Issue 2783773002: Link PasswordProtectionService to Profile and SB Service (Closed)
Patch Set: refine histogram description 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_manager_client.h
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
index 8edd18b07693af37246a5396a2b25f5f1921403c..92dad1f39122833f3a8659e106b93a650d9b3b88 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -21,6 +21,12 @@ class AutofillManager;
class GURL;
+#if defined(SAFE_BROWSING_DB_LOCAL)
+namespace safe_browsing {
+class PasswordProtectionService;
+}
+#endif
+
namespace password_manager {
class LogManager;
@@ -192,6 +198,12 @@ class PasswordManagerClient {
// Record that we saw a password field on this page.
virtual void AnnotateNavigationEntry(bool has_password_field);
+#if defined(SAFE_BROWSING_DB_LOCAL)
+ // Return the PasswordProtectionService associated with this instance.
+ virtual safe_browsing::PasswordProtectionService*
+ GetPasswordProtectionService() const = 0;
+#endif
+
private:
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient);
};

Powered by Google App Engine
This is Rietveld 408576698