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_COMMON_CHROME_RESULT_CODES_H_
6#define CHROME_COMMON_CHROME_RESULT_CODES_H_
7
8#include "content/public/common/result_codes.h"
9
10namespace chrome {
11
12enum ResultCode {
13  RESULT_CODE_CHROME_START = content::RESULT_CODE_LAST_CODE,
14
15  // An invalid command line url was given.
16  RESULT_CODE_INVALID_CMDLINE_URL = RESULT_CODE_CHROME_START,
17
18  // The process is of an unknown type.
19  RESULT_CODE_BAD_PROCESS_TYPE,
20
21  // A critical chrome file is missing.
22  RESULT_CODE_MISSING_DATA,
23
24  // Failed to make Chrome default browser (not used?).
25  RESULT_CODE_SHELL_INTEGRATION_FAILED,
26
27  // Machine level install exists
28  RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS,
29
30  // Uninstall detected another chrome instance.
31  RESULT_CODE_UNINSTALL_CHROME_ALIVE,
32
33  // The user changed their mind.
34  RESULT_CODE_UNINSTALL_USER_CANCEL,
35
36  // Delete profile as well during uninstall.
37  RESULT_CODE_UNINSTALL_DELETE_PROFILE,
38
39  // Command line parameter is not supported.
40  RESULT_CODE_UNSUPPORTED_PARAM,
41
42  // Browser import hung and was killed.
43  RESULT_CODE_IMPORTER_HUNG,
44
45  // Trying to restart the browser we crashed.
46  RESULT_CODE_RESPAWN_FAILED,
47
48  // The EXP1, EXP2, EXP3, EXP4 are generic codes used to communicate some
49  // simple outcome back to the process that launched us. This is used for
50  // experiments and the actual meaning depends on the experiment.
51  // (only EXP2 is used?)
52  RESULT_CODE_NORMAL_EXIT_EXP1,
53  RESULT_CODE_NORMAL_EXIT_EXP2,
54  RESULT_CODE_NORMAL_EXIT_EXP3,
55  RESULT_CODE_NORMAL_EXIT_EXP4,
56
57  // For experiments this return code means that the user canceled causes the
58  // did_run "dr" signal to be reset soi this chrome run does not count as
59  // active chrome usage.
60  RESULT_CODE_NORMAL_EXIT_CANCEL,
61
62  // The profile was in use on another host.
63  RESULT_CODE_PROFILE_IN_USE,
64
65  // Failed to pack an extension via the cmd line.
66  RESULT_CODE_PACK_EXTENSION_ERROR,
67
68  // Failed to silently uninstall an extension.
69  RESULT_CODE_UNINSTALL_EXTENSION_ERROR,
70
71  // The browser process exited early by passing the command line to another
72  // running browser.
73  RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED,
74
75  // A dummy value we should not use. See crbug.com/152285.
76  RESULT_CODE_NOTUSED_1,
77
78  // Failed to install an item from the webstore when the kInstallFromWebstore
79  // command line flag was present.
80  RESULT_CODE_INSTALL_FROM_WEBSTORE_ERROR_2,
81
82  // A dummy value we should not use. See crbug.com/152285.
83  RESULT_CODE_NOTUSED_2,
84
85  // Returned when the user has not yet accepted the EULA.
86  RESULT_CODE_EULA_REFUSED,
87
88  // Failed to migrate user data directory for side-by-side package support
89  // (Linux-only).
90  RESULT_CODE_SXS_MIGRATION_FAILED,
91
92  // Last return code (keep this last).
93  RESULT_CODE_CHROME_LAST_CODE,
94};
95
96}  // namespace chrome
97
98#endif  // CHROME_COMMON_CHROME_RESULT_CODES_H_
99