OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
11 | 11 |
| 12 namespace extensions { |
12 // Base class for all terminalPrivate function classes. Main purpose is to run | 13 // Base class for all terminalPrivate function classes. Main purpose is to run |
13 // permission check before calling actual function implementation. | 14 // permission check before calling actual function implementation. |
14 class TerminalPrivateFunction : public AsyncExtensionFunction { | 15 class TerminalPrivateFunction : public AsyncExtensionFunction { |
15 public: | 16 public: |
16 TerminalPrivateFunction(); | 17 TerminalPrivateFunction(); |
17 | 18 |
18 protected: | 19 protected: |
19 virtual ~TerminalPrivateFunction(); | 20 virtual ~TerminalPrivateFunction(); |
20 | 21 |
21 // ExtensionFunction: | 22 // ExtensionFunction: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 protected: | 91 protected: |
91 virtual ~TerminalPrivateOnTerminalResizeFunction(); | 92 virtual ~TerminalPrivateOnTerminalResizeFunction(); |
92 | 93 |
93 virtual bool RunTerminalFunction() OVERRIDE; | 94 virtual bool RunTerminalFunction() OVERRIDE; |
94 | 95 |
95 private: | 96 private: |
96 void OnResizeOnFileThread(pid_t pid, int width, int height); | 97 void OnResizeOnFileThread(pid_t pid, int width, int height); |
97 void RespondOnUIThread(bool success); | 98 void RespondOnUIThread(bool success); |
98 }; | 99 }; |
99 | 100 |
| 101 } // namespace extensions |
| 102 |
100 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ | 103 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ |
OLD | NEW |