| OLD | NEW |
| 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 CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ |
| 7 | 7 |
| 8 #include "components/safe_browsing/password_protection/password_protection_servi
ce.h" | 8 #include "components/safe_browsing/password_protection/password_protection_servi
ce.h" |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool IsPingingEnabled(const base::Feature& feature, | 47 bool IsPingingEnabled(const base::Feature& feature, |
| 48 RequestOutcome* reason) override; | 48 RequestOutcome* reason) override; |
| 49 | 49 |
| 50 // If user enabled history syncing. | 50 // If user enabled history syncing. |
| 51 bool IsHistorySyncEnabled() override; | 51 bool IsHistorySyncEnabled() override; |
| 52 | 52 |
| 53 void ShowPhishingInterstitial(const GURL& phishing_url, | 53 void ShowPhishingInterstitial(const GURL& phishing_url, |
| 54 const std::string& token, | 54 const std::string& token, |
| 55 content::WebContents* web_contents) override; | 55 content::WebContents* web_contents) override; |
| 56 | 56 |
| 57 PasswordProtectionService::SyncAccountType GetSyncAccountType() override; |
| 58 |
| 57 FRIEND_TEST_ALL_PREFIXES( | 59 FRIEND_TEST_ALL_PREFIXES( |
| 58 ChromePasswordProtectionServiceTest, | 60 ChromePasswordProtectionServiceTest, |
| 59 VerifyFinchControlForLowReputationPingSBEROnlyNoIncognito); | 61 VerifyFinchControlForLowReputationPingSBEROnlyNoIncognito); |
| 60 FRIEND_TEST_ALL_PREFIXES( | 62 FRIEND_TEST_ALL_PREFIXES( |
| 61 ChromePasswordProtectionServiceTest, | 63 ChromePasswordProtectionServiceTest, |
| 62 VerifyFinchControlForLowReputationPingSBERAndHistorySyncNoIncognito); | 64 VerifyFinchControlForLowReputationPingSBERAndHistorySyncNoIncognito); |
| 63 FRIEND_TEST_ALL_PREFIXES(ChromePasswordProtectionServiceTest, | 65 FRIEND_TEST_ALL_PREFIXES(ChromePasswordProtectionServiceTest, |
| 64 VerifyFinchControlForLowReputationPingAll); | 66 VerifyFinchControlForLowReputationPingAll); |
| 65 FRIEND_TEST_ALL_PREFIXES( | 67 FRIEND_TEST_ALL_PREFIXES( |
| 66 ChromePasswordProtectionServiceTest, | 68 ChromePasswordProtectionServiceTest, |
| 67 VerifyFinchControlForLowReputationPingAllButNoIncognito); | 69 VerifyFinchControlForLowReputationPingAllButNoIncognito); |
| 70 FRIEND_TEST_ALL_PREFIXES(ChromePasswordProtectionServiceTest, |
| 71 VerifyGetSyncAccountType); |
| 68 | 72 |
| 69 private: | 73 private: |
| 70 friend class MockChromePasswordProtectionService; | 74 friend class MockChromePasswordProtectionService; |
| 71 // Constructor used for tests only. | 75 // Constructor used for tests only. |
| 72 explicit ChromePasswordProtectionService(Profile* profile); | 76 explicit ChromePasswordProtectionService(Profile* profile); |
| 73 | 77 |
| 74 scoped_refptr<SafeBrowsingUIManager> ui_manager_; | 78 scoped_refptr<SafeBrowsingUIManager> ui_manager_; |
| 75 // Profile associated with this instance. | 79 // Profile associated with this instance. |
| 76 Profile* profile_; | 80 Profile* profile_; |
| 77 scoped_refptr<SafeBrowsingNavigationObserverManager> | 81 scoped_refptr<SafeBrowsingNavigationObserverManager> |
| 78 navigation_observer_manager_; | 82 navigation_observer_manager_; |
| 79 DISALLOW_COPY_AND_ASSIGN(ChromePasswordProtectionService); | 83 DISALLOW_COPY_AND_ASSIGN(ChromePasswordProtectionService); |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 } // namespace safe_browsing | 86 } // namespace safe_browsing |
| 83 | 87 |
| 84 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ | 88 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_PASSWORD_PROTECTION_SERVICE_H_ |
| OLD | NEW |