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

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

Issue 12207060: Alter the ActivityLog db table schemas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: trying the upload again 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
===================================================================
--- 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>;
« 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