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

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

Issue 11421192: Save extension activity log to a file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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_actions.h
===================================================================
--- chrome/browser/extensions/activity_actions.h (revision 0)
+++ chrome/browser/extensions/activity_actions.h (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// User of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_
+#define CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_
+
+#include <string>
+#include "base/values.h"
+
+namespace activity {
+
+// This is the interface for extension actions that are to be recorded in
+// the activity log.
+class Action {
+ public:
mvrable 2012/12/04 01:00:13 There's extra indentation here: the visibility spe
felt 2012/12/07 19:27:45 Done.
+ // Print an action with il8n substitutions for display.
+ virtual std::string PrettyPrintForil8n() OVERRIDE;
mvrable 2012/12/04 01:00:13 OVERRIDE should be used in subclasses when overrid
felt 2012/12/07 19:27:45 Done.
+
+ // Print an action as a regular string for debugging purposes.
+ virtual std::string PrettyPrintForDebug() OVERRIDE;
+
+ virtual ~Action();
+};
+}
mvrable 2012/12/04 01:00:13 Leave a blank line between the two closing braces,
felt 2012/12/07 19:27:45 Done.
+
+#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_
mvrable 2012/12/04 01:00:13 lint in the web interface complains about no newli
felt 2012/12/07 19:27:45 Done.
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_database.h » ('j') | chrome/browser/extensions/activity_database.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698