OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/common/main_function_params.h" | 5 #include "chrome/common/main_function_params.h" |
6 #include "chrome/common/result_codes.h" | 6 #include "chrome/common/result_codes.h" |
7 | 7 |
8 // Native Client binary for 64-bit Windows can run only the NaCl loader or | 8 // Native Client binary for 64-bit Windows can run only the NaCl loader or |
9 // the sandbox broker processes. Other process types are not supported. | 9 // the sandbox broker processes. Other process types are not supported. |
10 int BrowserMain(const MainFunctionParams& parameters) { | 10 int BrowserMain(const MainFunctionParams& parameters) { |
11 return ResultCodes::BAD_PROCESS_TYPE; | 11 return ResultCodes::BAD_PROCESS_TYPE; |
12 } | 12 } |
13 | 13 |
14 int RendererMain(const MainFunctionParams& parameters) { | 14 int RendererMain(const MainFunctionParams& parameters) { |
15 return ResultCodes::BAD_PROCESS_TYPE; | 15 return ResultCodes::BAD_PROCESS_TYPE; |
16 } | 16 } |
17 | 17 |
18 int PluginMain(const MainFunctionParams& parameters) { | 18 int PluginMain(const MainFunctionParams& parameters) { |
19 return ResultCodes::BAD_PROCESS_TYPE; | 19 return ResultCodes::BAD_PROCESS_TYPE; |
20 } | 20 } |
21 | 21 |
| 22 int PpapiPluginMain(const MainFunctionParams& parameters) { |
| 23 return ResultCodes::BAD_PROCESS_TYPE; |
| 24 } |
| 25 |
22 int WorkerMain(const MainFunctionParams& parameters) { | 26 int WorkerMain(const MainFunctionParams& parameters) { |
23 return ResultCodes::BAD_PROCESS_TYPE; | 27 return ResultCodes::BAD_PROCESS_TYPE; |
24 } | 28 } |
25 | 29 |
26 int UtilityMain(const MainFunctionParams& parameters) { | 30 int UtilityMain(const MainFunctionParams& parameters) { |
27 return ResultCodes::BAD_PROCESS_TYPE; | 31 return ResultCodes::BAD_PROCESS_TYPE; |
28 } | 32 } |
29 | 33 |
30 int ProfileImportMain(const MainFunctionParams& parameters) { | 34 int ProfileImportMain(const MainFunctionParams& parameters) { |
31 return ResultCodes::BAD_PROCESS_TYPE; | 35 return ResultCodes::BAD_PROCESS_TYPE; |
32 } | 36 } |
33 | 37 |
34 int ZygoteMain(const MainFunctionParams& parameters) { | 38 int ZygoteMain(const MainFunctionParams& parameters) { |
35 return ResultCodes::BAD_PROCESS_TYPE; | 39 return ResultCodes::BAD_PROCESS_TYPE; |
36 } | 40 } |
37 | 41 |
38 int DiagnosticsMain(const CommandLine& command_line) { | 42 int DiagnosticsMain(const CommandLine& command_line) { |
39 return 1; | 43 return 1; |
40 } | 44 } |
41 | 45 |
42 int GpuMain(const MainFunctionParams&) { | 46 int GpuMain(const MainFunctionParams&) { |
43 return ResultCodes::BAD_PROCESS_TYPE; | 47 return ResultCodes::BAD_PROCESS_TYPE; |
44 } | 48 } |
45 | 49 |
46 int ServiceProcessMain(const MainFunctionParams& parameters) { | 50 int ServiceProcessMain(const MainFunctionParams& parameters) { |
47 return ResultCodes::BAD_PROCESS_TYPE; | 51 return ResultCodes::BAD_PROCESS_TYPE; |
48 } | 52 } |
OLD | NEW |