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

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

Issue 18878009: Add functions to clean URLs from the activity log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added counting policy Created 7 years, 4 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 4f50d54cf8e36667a808f7d260f6b79ed35cd526..746117d70d99ca7a203f4fa335091ee2ea63a301 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -39,6 +39,9 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
const base::Callback
<void(scoped_ptr<Action::ActionVector>)>& callback) OVERRIDE;
+ // Clean the URL data stored for this policy.
+ virtual void RemoveURLs(const std::vector<GURL>& restrict_urls) OVERRIDE;
+
virtual void Close() OVERRIDE;
// Database table schema.
@@ -65,6 +68,10 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
virtual scoped_refptr<Action> ProcessArguments(
scoped_refptr<Action> action) const;
+ // The implementation of RemoveURLs; this must only run on the database
+ // thread.
+ virtual void DoRemoveURLs(const std::vector<GURL>& restrict_urls);
+
// Tracks any pending updates to be written to the database, if write
// batching is turned on. Should only be accessed from the database thread.
Action::ActionVector queued_actions_;

Powered by Google App Engine
This is Rietveld 408576698