OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DB_V4_PROTOCOL_MANAGER_UTIL_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ |
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ |
7 | 7 |
8 // A class that implements the stateless methods used by the GetHashUpdate and | 8 // A class that implements the stateless methods used by the GetHashUpdate and |
9 // GetFullHash stubby calls made by Chrome using the SafeBrowsing V4 protocol. | 9 // GetFullHash stubby calls made by Chrome using the SafeBrowsing V4 protocol. |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 SB_THREAT_TYPE_BLACKLISTED_RESOURCE, | 111 SB_THREAT_TYPE_BLACKLISTED_RESOURCE, |
112 | 112 |
113 // Url abuses a permission API. | 113 // Url abuses a permission API. |
114 SB_THREAT_TYPE_API_ABUSE, | 114 SB_THREAT_TYPE_API_ABUSE, |
115 | 115 |
116 // Activation patterns for the Subresource Filter. | 116 // Activation patterns for the Subresource Filter. |
117 SB_THREAT_TYPE_SUBRESOURCE_FILTER, | 117 SB_THREAT_TYPE_SUBRESOURCE_FILTER, |
118 | 118 |
119 // CSD Phishing whitelist. This "threat" means a URL matched the whitelist. | 119 // CSD Phishing whitelist. This "threat" means a URL matched the whitelist. |
120 SB_THREAT_TYPE_CSD_WHITELIST, | 120 SB_THREAT_TYPE_CSD_WHITELIST, |
| 121 |
| 122 // Url detected by password protection service. |
| 123 SB_THREAT_TYPE_PASSWORD_PROTECTION_PHISHING_URL, |
121 }; | 124 }; |
122 | 125 |
123 // The information required to uniquely identify each list the client is | 126 // The information required to uniquely identify each list the client is |
124 // interested in maintaining and downloading from the SafeBrowsing servers. | 127 // interested in maintaining and downloading from the SafeBrowsing servers. |
125 // For example, for digests of Malware binaries on Windows: | 128 // For example, for digests of Malware binaries on Windows: |
126 // platform_type = WINDOWS, | 129 // platform_type = WINDOWS, |
127 // threat_entry_type = EXECUTABLE, | 130 // threat_entry_type = EXECUTABLE, |
128 // threat_type = MALWARE | 131 // threat_type = MALWARE |
129 class ListIdentifier { | 132 class ListIdentifier { |
130 public: | 133 public: |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 template <> | 374 template <> |
372 struct hash<safe_browsing::ListIdentifier> { | 375 struct hash<safe_browsing::ListIdentifier> { |
373 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { | 376 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { |
374 return id.hash(); | 377 return id.hash(); |
375 } | 378 } |
376 }; | 379 }; |
377 | 380 |
378 } // namespace std | 381 } // namespace std |
379 | 382 |
380 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ | 383 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ |
OLD | NEW |