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

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

Issue 12262025: Alter the ActivityLog db table schemas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_actions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_actions.h
diff --git a/chrome/browser/extensions/activity_actions.h b/chrome/browser/extensions/activity_actions.h
index ac8d9acf848bb46c920eca144845467f8b828e26..1c89163557fcd6fc0974b99d09f793b4e3ae7305 100644
--- a/chrome/browser/extensions/activity_actions.h
+++ b/chrome/browser/extensions/activity_actions.h
@@ -18,6 +18,9 @@ namespace extensions {
// the activity log.
class Action : public base::RefCountedThreadSafe<Action> {
public:
+ // Initialize the table for a given action type.
+ static bool InitializeTableInternal(sql::Connection* db);
+
// Record the action in the database.
virtual void Record(sql::Connection* db) = 0;
@@ -31,6 +34,13 @@ class Action : public base::RefCountedThreadSafe<Action> {
Action() {}
virtual ~Action() {}
+ // Initialize the table for a given action type.
+ static bool InitializeTableInternal(sql::Connection* db,
+ const char* table_name,
+ const char* basic_fields,
+ const char* content_fields[],
+ const int num_content_fields);
+
private:
friend class base::RefCountedThreadSafe<Action>;
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_actions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698