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

Unified Diff: content/common/result_codes.h

Issue 7377010: This change will split the result codes between content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually rename the files 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 side-by-side diff with in-line comments
Download patch
Index: content/common/result_codes.h
diff --git a/content/common/result_codes.h b/content/common/result_codes.h
index 6a341dd800da3165836ebb2d7bb676e5df7ca6fc..edfb8b693798cd3df9a91180fbcd24a09df634de 100644
--- a/content/common/result_codes.h
+++ b/content/common/result_codes.h
@@ -18,49 +18,25 @@
// it as an unsigned long and the exception values have high numbers. For
// example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
-class ResultCodes {
- public:
- enum ExitCode {
- NORMAL_EXIT = 0, // Process terminated normally.
- KILLED = 1, // Process was killed by user or system.
- HUNG = 2, // Process hung.
- INVALID_CMDLINE_URL, // An invalid command line url was given.
- SBOX_INIT_FAILED, // The sandbox could not be initialized.
- GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed.
- GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL.
- BAD_PROCESS_TYPE, // The process is of an unknown type.
- MISSING_PATH, // An critical chrome path is missing.
- MISSING_DATA, // A critical chrome file is missing.
- SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser.
- MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists
- UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts.
- UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance.
- UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall.
- UNINSTALL_USER_CANCEL, // The user changed her mind.
- UNINSTALL_DELETE_PROFILE, // Delete profile as well during uninstall.
- UNSUPPORTED_PARAM, // Command line parameter is not supported.
- KILLED_BAD_MESSAGE, // A bad message caused the process termination.
- IMPORTER_HUNG, // Browser import hung and was killed.
- RESPAWN_FAILED, // Trying to restart the browser we crashed.
+namespace content {
- NORMAL_EXIT_EXP1, // The EXP1, EXP2, EXP3, EXP4 are generic codes
- NORMAL_EXIT_EXP2, // used to communicate some simple outcome back
- NORMAL_EXIT_EXP3, // to the process that launched us. This is
- NORMAL_EXIT_EXP4, // used for experiments and the actual meaning
- // depends on the experiment.
+enum ResultCode {
+ // Process terminated normally.
+ RESULT_CODE_NORMAL_EXIT = 0,
- NORMAL_EXIT_CANCEL, // For experiments this return code means that
- // the user canceled causes the did_run "dr"
- // signal to be reset so this chrome run does
- // not count as active chrome usage.
+ // Process was killed by user or system.
+ RESULT_CODE_KILLED = 1,
- PROFILE_IN_USE, // The profile was in use on another host.
+ // Process hung.
+ RESULT_CODE_HUNG = 2,
- UNINSTALL_EXTENSION_ERROR, // Failed to silently uninstall an extension.
- PACK_EXTENSION_ERROR, // Failed to pack an extension via the cmd line.
+ // A bad message caused the process termination.
+ RESULT_CODE_KILLED_BAD_MESSAGE,
- EXIT_LAST_CODE // Last return code (keep it last).
- };
+ // Last return code (keep this last).
+ RESULT_CODE_LAST_CODE
};
+} // namespace content
+
#endif // CONTENT_COMMON_RESULT_CODES_H_
« chrome/browser/browser_main_win.cc ('K') | « content/common/process_watcher_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698