OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // User of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_ | |
7 | |
8 #include <string> | |
9 #include "base/memory/ref_counted_memory.h" | |
10 #include "base/values.h" | |
11 | |
12 namespace extensions { | |
13 | |
14 // This is the interface for extension actions that are to be recorded in | |
15 // the activity log. | |
16 class Action { | |
17 public: | |
18 // Print an action with il8n substitutions for display. | |
19 virtual std::string PrettyPrintFori18n() = 0; | |
20 | |
21 // Print an action as a regular string for debugging purposes. | |
22 virtual std::string PrettyPrintForDebug() = 0; | |
23 | |
24 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
| |
25 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.
| |
26 }; | |
27 | |
28 } // namespace | |
Eric Dingle
2012/12/13 20:37:34
// namespace extensions
This applies to all files
felt
2012/12/15 02:51:52
Done.
| |
29 | |
30 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_ | |
31 | |
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.
| |
OLD | NEW |