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: |
| 25 Action() {} |
| 26 virtual ~Action() {} |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(Action); |
| 29 }; |
| 30 |
| 31 } // namespace extensions |
| 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_ACTIONS_H_ |
| 34 |
OLD | NEW |