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

Unified Diff: chrome/browser/extensions/activity_log/activity_log.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/activity_log.h
diff --git a/chrome/browser/extensions/activity_log/activity_log.h b/chrome/browser/extensions/activity_log/activity_log.h
index 93f61e3c04d8badf03746218f8dd20d0008bafe2..d4678b7db47592c62874ce0955a1415ca249dcbb 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -110,6 +110,13 @@ class ActivityLog : public BrowserContextKeyedService,
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+ // Clean up URLs from the activity log database.
+ // If restrict_urls is empty then all URLs in the activity log database are
+ // removed, otherwise only those in restrict_urls are removed.
+ virtual void RemoveURLs(const std::vector<GURL>& restrict_urls);
+ virtual void RemoveURLs(const std::set<GURL>& restrict_urls);
+ virtual void RemoveURL(const GURL& url);
+
private:
friend class ActivityLogFactory;
friend class ActivityLogTest;

Powered by Google App Engine
This is Rietveld 408576698