Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: components/safe_browsing_db/v4_protocol_manager_util.h

Issue 2012553002: s/BINARY_DIGEST/EXECUTABLE in safebrowsing.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLEXP2URL
Patch Set: git fetch && git pull && gclient sync Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 33
34 V4ProtocolConfig(); 34 V4ProtocolConfig();
35 V4ProtocolConfig(const V4ProtocolConfig& other); 35 V4ProtocolConfig(const V4ProtocolConfig& other);
36 ~V4ProtocolConfig(); 36 ~V4ProtocolConfig();
37 }; 37 };
38 38
39 // The information required to uniquely identify each list the client is 39 // The information required to uniquely identify each list the client is
40 // interested in maintaining and downloading from the SafeBrowsing servers. 40 // interested in maintaining and downloading from the SafeBrowsing servers.
41 // For example, for digests of Malware binaries on Windows: 41 // For example, for digests of Malware binaries on Windows:
42 // platform_type = WINDOWS, 42 // platform_type = WINDOWS,
43 // threat_entry_type = BINARY_DIGEST, 43 // threat_entry_type = EXECUTABLE,
44 // threat_type = MALWARE 44 // threat_type = MALWARE
45 struct UpdateListIdentifier { 45 struct UpdateListIdentifier {
46 PlatformType platform_type; 46 PlatformType platform_type;
47 ThreatEntryType threat_entry_type; 47 ThreatEntryType threat_entry_type;
48 ThreatType threat_type; 48 ThreatType threat_type;
49 49
50 bool operator==(const UpdateListIdentifier& other) const; 50 bool operator==(const UpdateListIdentifier& other) const;
51 bool operator!=(const UpdateListIdentifier& other) const; 51 bool operator!=(const UpdateListIdentifier& other) const;
52 size_t hash() const; 52 size_t hash() const;
53 }; 53 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 namespace std { 133 namespace std {
134 template <> 134 template <>
135 struct hash<safe_browsing::UpdateListIdentifier> { 135 struct hash<safe_browsing::UpdateListIdentifier> {
136 std::size_t operator()(const safe_browsing::UpdateListIdentifier& s) const { 136 std::size_t operator()(const safe_browsing::UpdateListIdentifier& s) const {
137 return s.hash(); 137 return s.hash();
138 } 138 }
139 }; 139 };
140 } 140 }
141 141
142 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ 142 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698