diff options
author | sorin@chromium.org <sorin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 14:20:13 +0000 |
---|---|---|
committer | sorin@chromium.org <sorin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 14:20:13 +0000 |
commit | 3707eb2b96fe28806d61c45d9ca1e14211fbb1f6 (patch) | |
tree | eb603c7fba3200ae0d1d6d3e6f38de34615a898a /chrome/installer/util/util_constants.h | |
parent | 4fbc48e3511f85aa76f55c4ab11aa0eb3ba2b989 (diff) | |
download | chromium_src-3707eb2b96fe28806d61c45d9ca1e14211fbb1f6.zip chromium_src-3707eb2b96fe28806d61c45d9ca1e14211fbb1f6.tar.gz chromium_src-3707eb2b96fe28806d61c45d9ca1e14211fbb1f6.tar.bz2 |
Differential updates for components. We are adding support for delivering delta updates for Chrome components. Initial platform support for the patcher is Windows only. The update response includes both the full update and, if available, the differential update. The differential update is tried first, then the full update, if needed.
BUG=245318
Review URL: https://chromiumcodereview.appspot.com/15908002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/util_constants.h')
-rw-r--r-- | chrome/installer/util/util_constants.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h index bb7b693..3f9a496 100644 --- a/chrome/installer/util/util_constants.h +++ b/chrome/installer/util/util_constants.h @@ -80,12 +80,14 @@ enum InstallStatus { INVALID_STATE_FOR_OPTION, // 47. A non-install option was called with an // invalid installer state. WAIT_FOR_EXISTING_FAILED, // 48. OS error waiting for existing setup.exe. + PATCH_INVALID_ARGUMENTS, // 49. The arguments of --patch were missing or + // they were invalid for any reason. // Friendly reminder: note the COMPILE_ASSERT below. }; // Existing InstallStatus values must not change. Always add to the end. -COMPILE_ASSERT(installer::WAIT_FOR_EXISTING_FAILED == 48, +COMPILE_ASSERT(installer::PATCH_INVALID_ARGUMENTS == 49, dont_change_enum); // The type of an update archive. @@ -128,6 +130,7 @@ COMPILE_ASSERT(DEFERRING_TO_HIGHER_VERSION == 18, never_ever_ever_change_InstallerStage_values_bang); namespace switches { + extern const char kAutoLaunchChrome[]; extern const char kChrome[]; extern const char kChromeAppHostDeprecated[]; // TODO(huangs): Remove by M27. @@ -177,6 +180,11 @@ extern const char kInactiveUserToast[]; extern const char kSystemLevelToast[]; extern const char kExperimentGroup[]; extern const char kToastResultsKey[]; +extern const char kPatch[]; +extern const char kInputFile[]; +extern const char kPatchFile[]; +extern const char kOutputFile[]; + } // namespace switches extern const wchar_t kActiveSetupExe[]; @@ -237,6 +245,16 @@ extern const wchar_t kChromeChannelStable[]; extern const size_t kMaxAppModelIdLength; +// The range of error values for the installer, Courgette, and bsdiff is +// overlapping. These offset values disambiguate between different sets +// of errors by shifting the values up with the specified offset. +const int kCourgetteErrorOffset = 300; +const int kBsdiffErrorOffset = 600; + +// Arguments to --patch switch +extern const char kCourgette[]; +extern const char kBsdiff[]; + } // namespace installer #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |