Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1601)

Side by Side Diff: chrome/app/dummy_main_functions.cc

Issue 7397004: Take two at splitting result codes between content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile failure in uninstall.cc Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/client_util.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chrome_result_codes.h"
5 #include "content/common/main_function_params.h" 6 #include "content/common/main_function_params.h"
6 #include "content/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 chrome::RESULT_CODE_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 chrome::RESULT_CODE_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 chrome::RESULT_CODE_BAD_PROCESS_TYPE;
20 } 20 }
21 21
22 int PpapiPluginMain(const MainFunctionParams& parameters) { 22 int PpapiPluginMain(const MainFunctionParams& parameters) {
23 return ResultCodes::BAD_PROCESS_TYPE; 23 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
24 } 24 }
25 25
26 int PpapiBrokerMain(const MainFunctionParams& parameters) { 26 int PpapiBrokerMain(const MainFunctionParams& parameters) {
27 return ResultCodes::BAD_PROCESS_TYPE; 27 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
28 } 28 }
29 29
30 int WorkerMain(const MainFunctionParams& parameters) { 30 int WorkerMain(const MainFunctionParams& parameters) {
31 return ResultCodes::BAD_PROCESS_TYPE; 31 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
32 } 32 }
33 33
34 int UtilityMain(const MainFunctionParams& parameters) { 34 int UtilityMain(const MainFunctionParams& parameters) {
35 return ResultCodes::BAD_PROCESS_TYPE; 35 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
36 } 36 }
37 37
38 int ProfileImportMain(const MainFunctionParams& parameters) { 38 int ProfileImportMain(const MainFunctionParams& parameters) {
39 return ResultCodes::BAD_PROCESS_TYPE; 39 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
40 } 40 }
41 41
42 int ZygoteMain(const MainFunctionParams& parameters) { 42 int ZygoteMain(const MainFunctionParams& parameters) {
43 return ResultCodes::BAD_PROCESS_TYPE; 43 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
44 } 44 }
45 45
46 int DiagnosticsMain(const CommandLine& command_line) { 46 int DiagnosticsMain(const CommandLine& command_line) {
47 return 1; 47 return 1;
48 } 48 }
49 49
50 int GpuMain(const MainFunctionParams&) { 50 int GpuMain(const MainFunctionParams&) {
51 return ResultCodes::BAD_PROCESS_TYPE; 51 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
52 } 52 }
53 53
54 int ServiceProcessMain(const MainFunctionParams& parameters) { 54 int ServiceProcessMain(const MainFunctionParams& parameters) {
55 return ResultCodes::BAD_PROCESS_TYPE; 55 return chrome::RESULT_CODE_BAD_PROCESS_TYPE;
56 } 56 }
OLDNEW
« no previous file with comments | « chrome/app/client_util.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698