OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 class GURL; | 12 class GURL; |
13 | 13 |
14 namespace autofill { | |
15 struct PasswordForm; | |
16 } // namespace autofill | |
17 | |
18 namespace password_manager { | 14 namespace password_manager { |
19 | 15 |
20 // Enum used for histogram tracking PSL Domain triggering. | 16 // Enum used for histogram tracking PSL Domain triggering. |
21 // New entries should only be added to the end of the enum (before *_COUNT) so | 17 // New entries should only be added to the end of the enum (before *_COUNT) so |
22 // as to not disrupt existing data. | 18 // as to not disrupt existing data. |
23 enum PSLDomainMatchMetric { | 19 enum PSLDomainMatchMetric { |
24 PSL_DOMAIN_MATCH_NOT_USED = 0, | 20 PSL_DOMAIN_MATCH_NOT_USED = 0, |
25 PSL_DOMAIN_MATCH_NONE, | 21 PSL_DOMAIN_MATCH_NONE, |
26 PSL_DOMAIN_MATCH_FOUND, | 22 PSL_DOMAIN_MATCH_FOUND, |
27 PSL_DOMAIN_MATCH_COUNT | 23 PSL_DOMAIN_MATCH_COUNT |
(...skipping 17 matching lines...) Expand all Loading... |
45 bool IsPublicSuffixDomainMatch(const std::string& url1, | 41 bool IsPublicSuffixDomainMatch(const std::string& url1, |
46 const std::string& url2); | 42 const std::string& url2); |
47 | 43 |
48 // Two hosts are considered to belong to the same website when they share the | 44 // Two hosts are considered to belong to the same website when they share the |
49 // registry-controlled domain part. | 45 // registry-controlled domain part. |
50 std::string GetRegistryControlledDomain(const GURL& signon_realm); | 46 std::string GetRegistryControlledDomain(const GURL& signon_realm); |
51 | 47 |
52 } // namespace password_manager | 48 } // namespace password_manager |
53 | 49 |
54 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ | 50 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_ |
OLD | NEW |