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

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: use const_iterator 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 8699d2dd78004cf82502b0bbc2de0a821f9bb792..e4a2f6484ff9fff5321b14cd1904871413b0c9ae 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -50,6 +50,9 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
virtual void Close() OVERRIDE;
+ // Clean the URL data stored for this policy.
+ virtual void RemoveURLs(const std::vector<GURL>& restrict_urls) OVERRIDE;
+
// Database table schema.
static const char* kTableName;
static const char* kTableContentFields[];
@@ -74,6 +77,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