| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ |
| 6 #define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ | 6 #define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ |
| 7 | 7 |
| 8 #include "native_client/src/include/portability.h" | 8 #include "native_client/src/include/portability.h" |
| 9 #include "native_client/src/public/imc_types.h" | 9 #include "native_client/src/public/imc_types.h" |
| 10 | 10 |
| 11 namespace nacl { | 11 namespace nacl { |
| 12 namespace nonsfi { | 12 namespace nonsfi { |
| 13 | 13 |
| 14 // Registers the given fds as IPC channels for PPAPI. |
| 15 // This should be called before MainStart() (declared below) invocation. |
| 16 void SetIPCFileDescriptors(int browser_ipc_fd, int renderer_ipc_fd); |
| 17 |
| 14 // Launch NaCl with Non SFI mode. | 18 // Launch NaCl with Non SFI mode. |
| 15 void MainStart(NaClHandle imc_bootstrap_handle); | 19 void MainStart(NaClHandle imc_bootstrap_handle); |
| 16 | 20 |
| 17 } // namespace nonsfi | 21 } // namespace nonsfi |
| 18 } // namespace nacl | 22 } // namespace nacl |
| 19 | 23 |
| 20 #endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ | 24 #endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_MAIN_H_ |
| OLD | NEW |