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

Unified Diff: chrome/browser/extensions/activity_log/counting_policy.h

Issue 154053004: Introducing the activityLogPrivate.deleteActivities() API call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing Created 6 years, 10 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: chrome/browser/extensions/activity_log/counting_policy.h
diff --git a/chrome/browser/extensions/activity_log/counting_policy.h b/chrome/browser/extensions/activity_log/counting_policy.h
index a2e0795418d08e4a4c178cde7e7203ff83492705..2c77f1641a4cd73eb53a38e311ffb4be624c44b4 100644
--- a/chrome/browser/extensions/activity_log/counting_policy.h
+++ b/chrome/browser/extensions/activity_log/counting_policy.h
@@ -45,6 +45,9 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
retention_time_ = delta;
}
+ // Remove actions (rows) which IDs are specified in the action_ids array.
+ virtual void RemoveActions(const std::vector<int64>& action_ids) OVERRIDE;
+
// Clean the URL data stored for this policy.
virtual void RemoveURLs(const std::vector<GURL>&) OVERRIDE;
@@ -91,6 +94,10 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
const std::string& arg_url,
const int days_ago);
+ // The implementation of RemoveActions; this must only run on the database
+ // thread.
+ void DoRemoveActions(const std::vector<int64>& action_ids);
+
// The implementation of RemoveURLs; this must only run on the database
// thread.
void DoRemoveURLs(const std::vector<GURL>& restrict_urls);

Powered by Google App Engine
This is Rietveld 408576698