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

Side by Side Diff: components/safe_browsing/password_protection/password_protection_service.h

Issue 2872993003: Rename LowReputationPinging Feature to PasswordFieldOnFocusPinging (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERVICE _H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERVICE _H_
6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERVICE _H_ 6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERVICE _H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 class GURL; 28 class GURL;
29 class HostContentSettingsMap; 29 class HostContentSettingsMap;
30 30
31 namespace safe_browsing { 31 namespace safe_browsing {
32 32
33 class SafeBrowsingDatabaseManager; 33 class SafeBrowsingDatabaseManager;
34 class PasswordProtectionRequest; 34 class PasswordProtectionRequest;
35 35
36 extern const base::Feature kLowReputationPinging; 36 extern const base::Feature kPasswordFieldOnFocusPinging;
37 extern const base::Feature kProtectedPasswordEntryPinging; 37 extern const base::Feature kProtectedPasswordEntryPinging;
38 38
39 // Manage password protection pings and verdicts. There is one instance of this 39 // Manage password protection pings and verdicts. There is one instance of this
40 // class per profile. Therefore, every PasswordProtectionService instance is 40 // class per profile. Therefore, every PasswordProtectionService instance is
41 // associated with a unique HistoryService instance and a unique 41 // associated with a unique HistoryService instance and a unique
42 // HostContentSettingsMap instance. 42 // HostContentSettingsMap instance.
43 class PasswordProtectionService : public history::HistoryServiceObserver { 43 class PasswordProtectionService : public history::HistoryServiceObserver {
44 public: 44 public:
45 PasswordProtectionService( 45 PasswordProtectionService(
46 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager, 46 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // we need CancelableTaskTracker to cancel tasks posted to IO thread. 210 // we need CancelableTaskTracker to cancel tasks posted to IO thread.
211 base::CancelableTaskTracker tracker_; 211 base::CancelableTaskTracker tracker_;
212 212
213 base::WeakPtrFactory<PasswordProtectionService> weak_factory_; 213 base::WeakPtrFactory<PasswordProtectionService> weak_factory_;
214 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionService); 214 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionService);
215 }; 215 };
216 216
217 } // namespace safe_browsing 217 } // namespace safe_browsing
218 218
219 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERV ICE_H_ 219 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_SERV ICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698