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

Side by Side Diff: chrome/browser/safe_browsing/chrome_password_protection_service.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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_
7
8 #include "components/safe_browsing/password_protection/password_protection_servi ce.h"
9
10 class Profile;
11
12 namespace safe_browsing {
13
14 class SafeBrowsingService;
15 class SafeBrowsingNavigationObserverManager;
16
17 // ChromePasswordProtectionService extends PasswordProtectionService by adding
18 // access to SafeBrowsingNaivigationObserverManager and Profile.
19 class ChromePasswordProtectionService : public PasswordProtectionService {
20 public:
21 ChromePasswordProtectionService(SafeBrowsingService* sb_service,
22 Profile* profile);
23 ~ChromePasswordProtectionService() override;
24
25 protected:
26 // PasswordProtectionService overrides.
27 // Obtains referrer chain of |event_url| and |event_tab_id| and add this
28 // info into |frame|.
29 void FillReferrerChain(const GURL& event_url,
30 int event_tab_id,
31 LoginReputationClientRequest::Frame* frame) override;
32
33 bool IsExtendedReporting() override;
34
35 bool IsIncognito() override;
36
37 // Checks if Finch config allows sending pings to Safe Browsing backend.
38 bool IsPingingEnabled() override;
39
40 private:
41 // Profile associated with this instance.
42 Profile* profile_;
43 scoped_refptr<SafeBrowsingNavigationObserverManager>
44 navigation_observer_manager_;
45 DISALLOW_COPY_AND_ASSIGN(ChromePasswordProtectionService);
46 };
47
48 } // namespace safe_browsing
49
50 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698