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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
12 | 11 |
13 // Base class for all terminalPrivate function classes. Main purpose is to run | 12 // Base class for all terminalPrivate function classes. Main purpose is to run |
14 // permission check before calling actual function implementation. | 13 // permission check before calling actual function implementation. |
15 class TerminalPrivateFunction : public AsyncExtensionFunction { | 14 class TerminalPrivateFunction : public AsyncExtensionFunction { |
16 public: | 15 public: |
17 TerminalPrivateFunction(); | 16 TerminalPrivateFunction(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual ~OnTerminalResizeFunction(); | 86 virtual ~OnTerminalResizeFunction(); |
88 | 87 |
89 virtual bool RunTerminalFunction() OVERRIDE; | 88 virtual bool RunTerminalFunction() OVERRIDE; |
90 | 89 |
91 private: | 90 private: |
92 void OnResizeOnFileThread(pid_t pid, int width, int height); | 91 void OnResizeOnFileThread(pid_t pid, int width, int height); |
93 void RespondOnUIThread(bool success); | 92 void RespondOnUIThread(bool success); |
94 }; | 93 }; |
95 | 94 |
96 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ | 95 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ |
OLD | NEW |