Chromium Code Reviews| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 private: | 133 private: |
| 134 PlatformType platform_type_; | 134 PlatformType platform_type_; |
| 135 ThreatEntryType threat_entry_type_; | 135 ThreatEntryType threat_entry_type_; |
| 136 ThreatType threat_type_; | 136 ThreatType threat_type_; |
| 137 | 137 |
| 138 ListIdentifier(); | 138 ListIdentifier(); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 std::ostream& operator<<(std::ostream& os, const ListIdentifier& id); | 141 std::ostream& operator<<(std::ostream& os, const ListIdentifier& id); |
| 142 | 142 |
| 143 bool EnableInternalLists(); | |
|
Nathan Parker
2016/11/29 18:45:33
Add a comment explaining why some lists are intern
vakh (use Gerrit instead)
2016/11/29 21:00:13
Done.
| |
| 143 PlatformType GetCurrentPlatformType(); | 144 PlatformType GetCurrentPlatformType(); |
| 144 const ListIdentifier GetCertCsdDownloadWhitelistId(); | 145 const ListIdentifier GetCertCsdDownloadWhitelistId(); |
| 145 const ListIdentifier GetChromeExtensionMalwareId(); | 146 const ListIdentifier GetChromeExtensionMalwareId(); |
| 146 const ListIdentifier GetChromeUrlApiId(); | 147 const ListIdentifier GetChromeUrlApiId(); |
| 147 const ListIdentifier GetChromeFilenameClientIncidentId(); | 148 const ListIdentifier GetChromeFilenameClientIncidentId(); |
| 148 const ListIdentifier GetChromeUrlClientIncidentId(); | 149 const ListIdentifier GetChromeUrlClientIncidentId(); |
| 149 const ListIdentifier GetIpMalwareId(); | 150 const ListIdentifier GetIpMalwareId(); |
| 150 const ListIdentifier GetUrlCsdDownloadWhitelistId(); | 151 const ListIdentifier GetUrlCsdDownloadWhitelistId(); |
| 151 const ListIdentifier GetUrlCsdWhitelistId(); | 152 const ListIdentifier GetUrlCsdWhitelistId(); |
| 152 const ListIdentifier GetUrlMalwareId(); | 153 const ListIdentifier GetUrlMalwareId(); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 | 355 |
| 355 template <> | 356 template <> |
| 356 struct hash<safe_browsing::ListIdentifier> { | 357 struct hash<safe_browsing::ListIdentifier> { |
| 357 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { | 358 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { |
| 358 return id.hash(); | 359 return id.hash(); |
| 359 } | 360 } |
| 360 }; | 361 }; |
| 361 } | 362 } |
| 362 | 363 |
| 363 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ | 364 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ |
| OLD | NEW |