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

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

Issue 12096073: Implement sql::Connection::RazeAndClose(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable DEATH test on android and ios. Created 7 years, 10 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_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_database.h
diff --git a/chrome/browser/extensions/activity_database.h b/chrome/browser/extensions/activity_database.h
index 1c73dc9709cb98b55dac1ec01ac57d32d9a52907..02bdf5468f50db71243ea39658abb634f1404535 100644
--- a/chrome/browser/extensions/activity_database.h
+++ b/chrome/browser/extensions/activity_database.h
@@ -47,6 +47,9 @@ class ActivityDatabase : public base::RefCountedThreadSafe<ActivityDatabase> {
// Record an Action in the database.
void RecordAction(scoped_refptr<Action> action);
+ // Break any outstanding transactions, raze the database, and close
+ // it. Future calls on the current database handle will fail, when
+ // next opened the database will be empty.
void KillDatabase();
bool initialized() const { return initialized_; }
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698