| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_PROCESS_LAUNCHER_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_PROCESS_LAUNCHER_H_ | |
| 7 | |
| 8 #include "base/process.h" | |
| 9 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" | |
| 10 | |
| 11 class FilePath; | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 class NativeProcessLauncher { | |
| 16 public: | |
| 17 NativeProcessLauncher() {} | |
| 18 virtual ~NativeProcessLauncher() {} | |
| 19 virtual bool LaunchNativeProcess( | |
| 20 const FilePath& path, | |
| 21 base::ProcessHandle* native_process_handle, | |
| 22 NativeMessageProcessHost::FileHandle* read_file, | |
| 23 NativeMessageProcessHost::FileHandle* write_file) const; | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(NativeProcessLauncher); | |
| 27 }; | |
| 28 | |
| 29 } // namespace extensions | |
| 30 | |
| 31 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_PROCESS_LAUNCHER_H_ | |
| OLD | NEW |