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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Url leads to a blacklisted resource script. Note that no warnings should be | 109 // Url leads to a blacklisted resource script. Note that no warnings should be |
110 // shown on this threat type, but an incident report might be sent. | 110 // shown on this threat type, but an incident report might be sent. |
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 |
| 119 // Url detected by password protection service. |
| 120 SB_THREAT_TYPE_PASSWORD_PROTECTION_PHISHING_URL, |
118 }; | 121 }; |
119 | 122 |
120 // The information required to uniquely identify each list the client is | 123 // The information required to uniquely identify each list the client is |
121 // interested in maintaining and downloading from the SafeBrowsing servers. | 124 // interested in maintaining and downloading from the SafeBrowsing servers. |
122 // For example, for digests of Malware binaries on Windows: | 125 // For example, for digests of Malware binaries on Windows: |
123 // platform_type = WINDOWS, | 126 // platform_type = WINDOWS, |
124 // threat_entry_type = EXECUTABLE, | 127 // threat_entry_type = EXECUTABLE, |
125 // threat_type = MALWARE | 128 // threat_type = MALWARE |
126 class ListIdentifier { | 129 class ListIdentifier { |
127 public: | 130 public: |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 template <> | 371 template <> |
369 struct hash<safe_browsing::ListIdentifier> { | 372 struct hash<safe_browsing::ListIdentifier> { |
370 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { | 373 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { |
371 return id.hash(); | 374 return id.hash(); |
372 } | 375 } |
373 }; | 376 }; |
374 | 377 |
375 } // namespace std | 378 } // namespace std |
376 | 379 |
377 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ | 380 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ |
OLD | NEW |