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

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

Issue 23629015: Add deletion to the activityLogPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up CountingPolicy::DoDeleteDatabase 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 e4a2f6484ff9fff5321b14cd1904871413b0c9ae..ceb31a27922650dcbb4d57d6771ee1f84fc956b3 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -53,6 +53,9 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
// Clean the URL data stored for this policy.
virtual void RemoveURLs(const std::vector<GURL>& restrict_urls) OVERRIDE;
+ // Delete everything in the database.
+ virtual void DeleteDatabase() OVERRIDE;
+
// Database table schema.
static const char* kTableName;
static const char* kTableContentFields[];
@@ -79,7 +82,11 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
// The implementation of RemoveURLs; this must only run on the database
// thread.
- virtual void DoRemoveURLs(const std::vector<GURL>& restrict_urls);
+ void DoRemoveURLs(const std::vector<GURL>& restrict_urls);
+
+ // The implementation of DeleteDatabase; this must only run on the database
+ // thread.
+ void DoDeleteDatabase();
// Tracks any pending updates to be written to the database, if write
// batching is turned on. Should only be accessed from the database thread.

Powered by Google App Engine
This is Rietveld 408576698