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

Unified Diff: components/ntp_snippets/ntp_snippets_database.h

Issue 2355393002: New snippets now replace old snippets and do not merge (Closed)
Patch Set: Unittest fix Created 4 years, 3 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/ntp_snippets/ntp_snippets_database.h
diff --git a/components/ntp_snippets/ntp_snippets_database.h b/components/ntp_snippets/ntp_snippets_database.h
index 983166235f0ca70265f66149e3ae6c9b6aa842d5..8abc9809878bf20b485f1252bb719b08917d7df6 100644
--- a/components/ntp_snippets/ntp_snippets_database.h
+++ b/components/ntp_snippets/ntp_snippets_database.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <utility>
#include <vector>
#include "base/callback.h"
@@ -56,9 +57,9 @@ class NTPSnippetsDatabase {
// Adds or updates all the given snippets.
void SaveSnippets(const NTPSnippet::PtrVector& snippets);
- // Deletes the snippet with the given ID, and its image.
+ // Deletes the snippet with the given ID.
void DeleteSnippet(const std::string& snippet_id);
- // Deletes all the given snippets (identified by their IDs) and their images.
+ // Deletes all the given snippets (identified by their IDs).
void DeleteSnippets(const NTPSnippet::PtrVector& snippets);
// Loads the image data for the snippet with the given ID and passes it to
@@ -71,6 +72,8 @@ class NTPSnippetsDatabase {
// Deletes the image data for the given snippet ID.
void DeleteImage(const std::string& snippet_id);
+ // Deletes the image data for the given snippets (identified by their IDs).
+ void DeleteImages(const NTPSnippet::PtrVector& snippets);
private:
friend class NTPSnippetsDatabaseTest;

Powered by Google App Engine
This is Rietveld 408576698