Index: chrome/browser/extensions/activity_actions.h |
=================================================================== |
--- chrome/browser/extensions/activity_actions.h (revision 182082) |
+++ chrome/browser/extensions/activity_actions.h (working copy) |
@@ -18,6 +18,9 @@ |
// 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 @@ |
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>; |