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

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: Created 7 years, 11 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_database.h
diff --git a/chrome/browser/extensions/activity_database.h b/chrome/browser/extensions/activity_database.h
index c66cf4d2de44e9d6257005e2f630a27fbb3f1232..99d9f0b55efd974b775c64369ca183ccd6f9666a 100644
--- a/chrome/browser/extensions/activity_database.h
+++ b/chrome/browser/extensions/activity_database.h
@@ -45,6 +45,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_; }
@@ -72,4 +75,3 @@ class ActivityDatabase : public base::RefCountedThreadSafe<ActivityDatabase> {
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_DATABASE_H_
-
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_database.cc » ('j') | chrome/browser/net/sqlite_persistent_cookie_store.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698