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

Unified Diff: chrome/browser/extensions/activity_log/fullstream_ui_policy.h

Issue 21646004: Compressed activity log database storage (Closed) Base URL: http://git.chromium.org/chromium/src.git@refactor-cleanups
Patch Set: Created 7 years, 5 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_log/fullstream_ui_policy.h
diff --git a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
index 49a8b700c8fe1d8286157c648419aae2cc55a8fc..571dd9c332f479791db9cf00ddbd36ef93761b9c 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.h
@@ -9,6 +9,7 @@
#include "chrome/browser/extensions/activity_log/activity_database.h"
#include "chrome/browser/extensions/activity_log/activity_log_policy.h"
+#include "chrome/browser/extensions/activity_log/database_interned_string.h"
class GURL;
@@ -63,6 +64,12 @@ class FullStreamUIPolicy : public ActivityLogDatabasePolicy {
virtual scoped_refptr<Action> ProcessArguments(
scoped_refptr<Action> action) const;
+ // Tables for mapping strings to integers for shrinking database storage
+ // requirements. URLs are kept in a separate table from other strings to
+ // make history clearing simpler.
+ DatabaseStringTable string_table_;
+ DatabaseStringTable url_table_;
+
// Tracks any pending updates to be written to the database, if write
// batching is turned on. Should only be accessed from the database thread.
Action::ActionVector queued_actions_;

Powered by Google App Engine
This is Rietveld 408576698