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

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

Issue 2450633003: Small: Implement CheckDownloadUrls -- not called yet. (Closed)
Patch Set: Remove histograms change. Will send that as a separate CL. Remove an unused variable. Created 4 years, 1 month 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ThreatType threat_type_; 125 ThreatType threat_type_;
126 126
127 ListIdentifier(); 127 ListIdentifier();
128 }; 128 };
129 129
130 std::ostream& operator<<(std::ostream& os, const ListIdentifier& id); 130 std::ostream& operator<<(std::ostream& os, const ListIdentifier& id);
131 131
132 PlatformType GetCurrentPlatformType(); 132 PlatformType GetCurrentPlatformType();
133 const ListIdentifier GetChromeUrlApiId(); 133 const ListIdentifier GetChromeUrlApiId();
134 const ListIdentifier GetUrlMalwareId(); 134 const ListIdentifier GetUrlMalwareId();
135 const ListIdentifier GetUrlMalBinId();
135 const ListIdentifier GetUrlSocEngId(); 136 const ListIdentifier GetUrlSocEngId();
136 const ListIdentifier GetUrlUwsId(); 137 const ListIdentifier GetUrlUwsId();
137 138
138 // Represents the state of each store. 139 // Represents the state of each store.
139 typedef base::hash_map<ListIdentifier, std::string> StoreStateMap; 140 typedef base::hash_map<ListIdentifier, std::string> StoreStateMap;
140 141
141 // Sever response, parsed in vector form. 142 // Sever response, parsed in vector form.
142 typedef std::vector<std::unique_ptr<ListUpdateResponse>> ParsedServerResponse; 143 typedef std::vector<std::unique_ptr<ListUpdateResponse>> ParsedServerResponse;
143 144
144 // TODO(vakh): Consider using a std::pair for this. 145 // TODO(vakh): Consider using a std::pair for this.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 template <> 328 template <>
328 struct hash<safe_browsing::ListIdentifier> { 329 struct hash<safe_browsing::ListIdentifier> {
329 std::size_t operator()(const safe_browsing::ListIdentifier& id) const { 330 std::size_t operator()(const safe_browsing::ListIdentifier& id) const {
330 return id.hash(); 331 return id.hash();
331 } 332 }
332 }; 333 };
333 } 334 }
334 335
335 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ 336 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/v4_local_database_manager.cc ('k') | components/safe_browsing_db/v4_protocol_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698