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

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

Issue 21646004: Compressed activity log database storage (Closed) Base URL: http://git.chromium.org/chromium/src.git@refactor-cleanups
Patch Set: Delete a debugging log message Created 7 years, 4 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_log/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_log/activity_actions.h
diff --git a/chrome/browser/extensions/activity_log/activity_actions.h b/chrome/browser/extensions/activity_log/activity_actions.h
index 6782b8314d5738b73a7576859e82e712d6981c01..8e3e31ca36a7c90c6c64fdf58df37fc69893c811 100644
--- a/chrome/browser/extensions/activity_log/activity_actions.h
+++ b/chrome/browser/extensions/activity_log/activity_actions.h
@@ -98,12 +98,20 @@ class Action : public base::RefCountedThreadSafe<Action> {
void set_other(scoped_ptr<DictionaryValue> other);
DictionaryValue* mutable_other();
+ // Helper methods for serializing and deserializing URLs into strings. If
+ // the URL is marked as incognito, then the string is prefixed with
+ // kIncognitoUrl ("<incognito>").
+ std::string SerializePageUrl() const;
+ void ParsePageUrl(const std::string& url);
+ std::string SerializeArgUrl() const;
+ void ParseArgUrl(const std::string& url);
+
// Flatten the activity's type-specific fields into an ExtensionActivity.
scoped_ptr<api::activity_log_private::ExtensionActivity>
ConvertToExtensionActivity();
// Print an action as a regular string for debugging purposes.
- std::string PrintForDebug();
+ virtual std::string PrintForDebug() const;
protected:
virtual ~Action();
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_actions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698