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

Unified Diff: chrome/browser/safe_browsing/services_delegate_impl.h

Issue 2912383004: Fill is_chrome_signin_password field in the password entry pings. (Closed)
Patch Set: address nparker's comments Created 3 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: chrome/browser/safe_browsing/services_delegate_impl.h
diff --git a/chrome/browser/safe_browsing/services_delegate_impl.h b/chrome/browser/safe_browsing/services_delegate_impl.h
index 565d1e80b99ac4347136260ab49580702dac4e57..0138ec8f1c98e71bb88e057301bc58a376b26c7b 100644
--- a/chrome/browser/safe_browsing/services_delegate_impl.h
+++ b/chrome/browser/safe_browsing/services_delegate_impl.h
@@ -8,11 +8,13 @@
#include <memory>
#include "base/macros.h"
+#include "chrome/browser/safe_browsing/chrome_password_protection_service.h"
#include "chrome/browser/safe_browsing/client_side_detection_service.h"
#include "chrome/browser/safe_browsing/download_protection_service.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h"
#include "chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h"
#include "chrome/browser/safe_browsing/services_delegate.h"
+#include "components/safe_browsing/password_protection/password_protection_service.h"
namespace safe_browsing {
@@ -61,6 +63,11 @@ class ServicesDelegateImpl : public ServicesDelegate {
IncidentReportingService* CreateIncidentReportingService();
ResourceRequestDetector* CreateResourceRequestDetector();
+ void CreatePasswordProtectionService(Profile* profile) override;
+ void RemovePasswordProtectionService(Profile* profile) override;
+ PasswordProtectionService* GetPasswordProtectionService(
+ Profile* profile) const override;
+
std::unique_ptr<ClientSideDetectionService> csd_service_;
std::unique_ptr<DownloadProtectionService> download_service_;
std::unique_ptr<IncidentReportingService> incident_service_;
@@ -73,6 +80,12 @@ class ServicesDelegateImpl : public ServicesDelegate {
// Accessed on both UI and IO thread.
scoped_refptr<SafeBrowsingDatabaseManager> v4_local_database_manager_;
+ // Tracks existing Profiles, and their corresponding
+ // ChromePasswordProtectionService instances.
+ // Accessed on UI thread.
+ std::map<Profile*, std::unique_ptr<ChromePasswordProtectionService>>
+ password_protection_service_map_;
+
DISALLOW_COPY_AND_ASSIGN(ServicesDelegateImpl);
};
« no previous file with comments | « chrome/browser/safe_browsing/services_delegate.h ('k') | chrome/browser/safe_browsing/services_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698