Chromium Code Reviews| Index: chrome/install_static/install_constants.h |
| diff --git a/chrome/install_static/install_constants.h b/chrome/install_static/install_constants.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..31c6b6c39b71268c8e9cfcd2c5d8bf0d35083271 |
| --- /dev/null |
| +++ b/chrome/install_static/install_constants.h |
| @@ -0,0 +1,55 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Defines the struct used to describe each of a brand's install modes. |
| + |
| +#ifndef CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| +#define CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| + |
| +namespace install_static { |
| + |
| +// Identifies different strategies for determining an update channel. |
| +enum class ChannelStrategy { |
| + // Update channels are not supported. This value is for exclusive use by |
| + // brands that do not integrate with Google Update. |
| + UNSUPPORTED, |
| + // Update channel is determined by parsing the "ap" value in the registry. |
| + ADDITIONAL_PARAMETERS, |
| + // Update channel is a fixed value. |
| + FIXED, |
| +}; |
| + |
| +// A POD-struct defining constants for a brand's install mode. A brand may have |
|
robertshield
2016/10/17 05:27:23
Please elaborate somewhat extensively here on what
grt (UTC plus 2)
2016/10/24 11:17:51
Comment added to top of file. My hope is that the
|
| +// one primary and many secondary install modes. |
| +struct InstallConstants { |
| + // The brand-specific index/identifier of this instance (defined in a brand's |
| + // BRAND_install_modes.h file). Index 0 is reserved for a brand's primary |
| + // install mode. |
| + int index; |
| + |
| + // The install suffix of a secondary mode (e.g., " SxS" for canary Chrome) or |
| + // an empty string for the primary mode. |
| + const wchar_t* install_suffix; |
| + |
| + // The app guid with which this mode is registered with Google Update, or an |
| + // empty string if the brand does not integrate with Google Update. |
| + const wchar_t* app_guid; |
| + |
| + // The default name for this mode's update channel. |
| + const wchar_t* default_channel_name; |
| + |
| + // The strategy used to determine the mode's update channel, or UNSUPPORTED if |
| + // the brand does not integrate with Google Update. |
| + ChannelStrategy channel_strategy; |
| + |
| + // True if this mode supports system-level installs. |
| + bool supports_system_level; |
| + |
| + // True if this mode supports multi-install. |
| + bool supports_multi_install; |
| +}; |
|
robertshield
2016/10/17 05:27:23
does is_msi() belong here for msi managed installs
grt (UTC plus 2)
2016/10/24 11:17:51
No, since that varies based on install-time factor
|
| + |
| +} // namespace install_static |
| + |
| +#endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |