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

Unified Diff: components/safe_browsing_db/v4_protocol_manager_util.h

Issue 2103693002: SafeBrowsing PVer4: Send mutable response to the database and the stores (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_ReadFromDisk
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/v4_protocol_manager_util.h
diff --git a/components/safe_browsing_db/v4_protocol_manager_util.h b/components/safe_browsing_db/v4_protocol_manager_util.h
index 7b510de3dedf59396fa290aebdfe411106bfd1b5..5f0469543df5f4b33a378d8a859510abe9d6176b 100644
--- a/components/safe_browsing_db/v4_protocol_manager_util.h
+++ b/components/safe_browsing_db/v4_protocol_manager_util.h
@@ -58,7 +58,7 @@ struct UpdateListIdentifier {
ThreatType threat_type;
UpdateListIdentifier(PlatformType, ThreatEntryType, ThreatType);
- UpdateListIdentifier(const ListUpdateResponse&);
+ UpdateListIdentifier(const ListUpdateResponse*);
Scott Hess - ex-Googler 2016/06/28 03:58:43 Should this be explicit? The change to pointer ma
vakh (use Gerrit instead) 2016/06/28 21:34:14 Not sure what you mean by that. What could be the
vakh (use Gerrit instead) 2016/06/28 21:59:48 nparker@ told me that you probable meant the use o
Scott Hess - ex-Googler 2016/06/28 22:22:25 What I meant by explicit was the keyword, and why
vakh (use Gerrit instead) 2016/06/29 19:58:52 Done. Thanks for pointing it out.
bool operator==(const UpdateListIdentifier& other) const;
bool operator!=(const UpdateListIdentifier& other) const;
@@ -82,6 +82,9 @@ typedef base::hash_map<UpdateListIdentifier, std::string> StoreFileNameMap;
// Represents the state of each store.
typedef base::hash_map<UpdateListIdentifier, std::string> StoreStateMap;
+// Sever response, parsed in vector form.
+typedef std::vector<std::unique_ptr<ListUpdateResponse>> ParsedServerResponse;
+
// Enumerate failures for histogramming purposes. DO NOT CHANGE THE
// ORDERING OF THESE VALUES.
enum V4OperationResult {

Powered by Google App Engine
This is Rietveld 408576698