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

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

Issue 23629015: Add deletion to the activityLogPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undoing last commit Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 021466517544dfb7013d5697e86fc3b6bface241..0c7a0c0ad4108b2793be12a176d7f9d3cc1b8ddc 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -92,7 +92,7 @@ class ActivityLog : public BrowserContextKeyedService,
virtual void OnExtensionInstalled(const Extension* extension) OVERRIDE {}
virtual void OnExtensionLoaded(const Extension* extension) OVERRIDE;
virtual void OnExtensionUnloaded(const Extension* extension) OVERRIDE;
- virtual void OnExtensionUninstalled(const Extension* extension) OVERRIDE {}
+ virtual void OnExtensionUninstalled(const Extension* extension) OVERRIDE;
// We also have to list the following from InstallObserver.
virtual void OnBeginExtensionInstall(const std::string& extension_id,
const std::string& extension_name,
@@ -115,9 +115,12 @@ class ActivityLog : public BrowserContextKeyedService,
// 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);
+ void RemoveURLs(const std::vector<GURL>& restrict_urls);
+ void RemoveURLs(const std::set<GURL>& restrict_urls);
+ void RemoveURL(const GURL& url);
+
+ // Deletes the database associated with the policy that's currently in use.
+ void DeleteDatabase();
private:
friend class ActivityLogFactory;
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698