Chromium Code Reviews| 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,31 @@ |
| +// 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/memory/ref_counted_memory.h" |
| +#include "base/values.h" |
| + |
| +namespace extensions { |
| + |
| +// This is the interface for extension actions that are to be recorded in |
| +// the activity log. |
| +class Action { |
| + public: |
| + // Print an action with il8n substitutions for display. |
| + virtual std::string PrettyPrintFori18n() = 0; |
| + |
| + // Print an action as a regular string for debugging purposes. |
| + virtual std::string PrettyPrintForDebug() = 0; |
| + |
| + protected: |
|
Eric Dingle
2012/12/13 20:37:34
You should also define a constructor, even if it d
felt
2012/12/15 02:51:52
They have to be protected/private due to the refco
|
| + virtual ~Action() { } |
|
Eric Dingle
2012/12/13 20:37:34
Don't forget:
DISALLOW_COPY_AND_ASSIGN(Action);
Eric Dingle
2012/12/13 20:37:34
I think the common style is to have no space betwe
felt
2012/12/15 02:51:52
Done.
felt
2012/12/15 02:51:52
Done.
|
| +}; |
| + |
| +} // namespace |
|
Eric Dingle
2012/12/13 20:37:34
// namespace extensions
This applies to all files
felt
2012/12/15 02:51:52
Done.
|
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_ |
| + |
|
Eric Dingle
2012/12/13 20:37:34
Remove extra line break. This applies to all files
felt
2012/12/15 02:51:52
Done.
|