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

Unified Diff: components/safe_browsing_db/v4_store.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: Minor: Add the explicit keyword for UpdateListIdentifier constructor 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
« no previous file with comments | « components/safe_browsing_db/v4_protocol_manager_util.h ('k') | components/safe_browsing_db/v4_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_store.h
diff --git a/components/safe_browsing_db/v4_store.h b/components/safe_browsing_db/v4_store.h
index d5144d300946c9fe191382fa8a86b36007a5acdc..bbafbe73dfafe2f8f6957bceed821acc46e0101e 100644
--- a/components/safe_browsing_db/v4_store.h
+++ b/components/safe_browsing_db/v4_store.h
@@ -102,7 +102,7 @@ class V4Store {
const base::FilePath& store_path() const { return store_path_; }
- void ApplyUpdate(const ListUpdateResponse&,
+ void ApplyUpdate(std::unique_ptr<ListUpdateResponse> response,
const scoped_refptr<base::SingleThreadTaskRunner>&,
UpdatedStoreReadyCallback);
@@ -133,7 +133,8 @@ class V4Store {
StoreReadResult ReadFromDisk();
// Writes the FULL_UPDATE |response| to disk as a V4StoreFileFormat proto.
- StoreWriteResult WriteToDisk(const ListUpdateResponse& response) const;
+ StoreWriteResult WriteToDisk(
+ std::unique_ptr<ListUpdateResponse> response) const;
// The state of the store as returned by the PVer4 server in the last applied
// update response.
« no previous file with comments | « components/safe_browsing_db/v4_protocol_manager_util.h ('k') | components/safe_browsing_db/v4_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698