OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef EXTENSIONS_BROWSER_API_SHELL_PRIVATE_SHELL_PRIVATE_API_H_ | |
6 #define EXTENSIONS_BROWSER_API_SHELL_PRIVATE_SHELL_PRIVATE_API_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "extensions/browser/extension_function.h" | |
10 | |
11 namespace extensions { | |
12 | |
13 // Synchronously prints "hello" to the console. | |
14 class ShellPrivatePrintHelloFunction : public UIThreadExtensionFunction { | |
15 public: | |
16 DECLARE_EXTENSION_FUNCTION("shellPrivate.printHello", UNKNOWN); | |
17 | |
18 ShellPrivatePrintHelloFunction(); | |
19 | |
20 protected: | |
21 virtual ~ShellPrivatePrintHelloFunction(); | |
22 | |
23 // ExtensionFunction: | |
24 virtual ResponseAction Run() override; | |
25 | |
26 private: | |
27 DISALLOW_COPY_AND_ASSIGN(ShellPrivatePrintHelloFunction); | |
28 }; | |
29 | |
30 } // namespace extensions | |
31 | |
32 #endif // EXTENSIONS_BROWSER_API_SHELL_PRIVATE_SHELL_PRIVATE_API_H_ | |
OLD | NEW |