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

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

Issue 154053004: Introducing the activityLogPrivate.deleteActivities() API call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/fullstream_ui_policy.h
diff --git a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
index a0d0b9a08e201087557cdbd05e8e02102c555d96..84e34917e7250d9ef8c3ac61bd6f8315606a9af2 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -40,6 +40,9 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
virtual void Close() OVERRIDE;
+ // Remove the actions stored for this policy according to the passed IDs.
+ 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>& restrict_urls) OVERRIDE;
@@ -73,6 +76,10 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
virtual scoped_refptr<Action> ProcessArguments(
scoped_refptr<Action> action) const;
+ // 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