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

Unified Diff: chrome/browser/extensions/activity_log/counting_policy.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
Index: chrome/browser/extensions/activity_log/counting_policy.h
diff --git a/chrome/browser/extensions/activity_log/counting_policy.h b/chrome/browser/extensions/activity_log/counting_policy.h
index b48dd628ff53d95cfc1af4f8073b769b344d1479..ec8a2e508bbfbfd30bf4b9aad2547f4bbe914149 100644
--- a/chrome/browser/extensions/activity_log/counting_policy.h
+++ b/chrome/browser/extensions/activity_log/counting_policy.h
@@ -48,6 +48,9 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
// Clean the URL data stored for this policy.
virtual void RemoveURLs(const std::vector<GURL>&) OVERRIDE;
+ // Delete everything in the database.
+ virtual void DeleteDatabase() OVERRIDE;
+
// The main database table, and the name for a read-only view that
// decompresses string values for easier parsing.
static const char* kTableName;
@@ -91,6 +94,9 @@ class CountingPolicy : public ActivityLogDatabasePolicy {
// thread.
void DoRemoveURLs(const std::vector<GURL>& restrict_urls);
+ // The implementation of DeleteDatabase; called on the database thread.
+ void DoDeleteDatabase();
+
// Cleans old records from the activity log database.
bool CleanOlderThan(sql::Connection* db, const base::Time& cutoff);

Powered by Google App Engine
This is Rietveld 408576698