| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 // Defines the struct used to describe each of a brand's install modes; see | |
| 6 // install_modes.h for details. For brands that integrate with Google Update, | |
| 7 // each mode also describes a strategy for determining its update channel. | |
| 8 | |
| 9 #ifndef CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | |
| 10 #define CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | |
| 11 | |
| 12 namespace install_static { | |
| 13 | |
| 14 // Identifies different strategies for determining an update channel. | |
| 15 enum class ChannelStrategy { | |
| 16 // Update channels are not supported. This value is for exclusive use by | |
| 17 // brands that do not integrate with Google Update. | |
| 18 UNSUPPORTED, | |
| 19 // Update channel is determined by parsing the "ap" value in the registry. | |
| 20 // This is used by Google Chrome's primary install mode to differentiate the | |
| 21 // beta and dev channels from the default stable channel. | |
| 22 ADDITIONAL_PARAMETERS, | |
| 23 // Update channel is a fixed value. This is used by to pin Google Chrome's SxS | |
| 24 // secondary install mode to the canary channel. | |
| 25 FIXED, | |
| 26 }; | |
| 27 | |
| 28 // A POD-struct defining constants for a brand's install mode. A brand has one | |
| 29 // primary and one or more secondary install modes. Refer to kInstallModes in | |
| 30 // chromium_install_modes.cc and google_chrome_install_modes.cc for examples of | |
| 31 // typical mode definitions. | |
| 32 struct InstallConstants { | |
| 33 // The size (in bytes) of this structure. This serves to verify that all | |
| 34 // modules in a process have the same definition of the struct. | |
| 35 size_t size; | |
| 36 | |
| 37 // The brand-specific index/identifier of this instance (defined in a brand's | |
| 38 // BRAND_install_modes.h file). Index 0 is reserved for a brand's primary | |
| 39 // install mode. | |
| 40 int index; | |
| 41 | |
| 42 // The install suffix of a secondary mode (e.g., " SxS" for canary Chrome) or | |
| 43 // an empty string for the primary mode. This suffix is appended to file and | |
| 44 // registry paths used by the product. | |
| 45 const wchar_t* install_suffix; | |
| 46 | |
| 47 // The app guid with which this mode is registered with Google Update, or an | |
| 48 // empty string if the brand does not integrate with Google Update. | |
| 49 const wchar_t* app_guid; | |
| 50 | |
| 51 // The default name for this mode's update channel. | |
| 52 const wchar_t* default_channel_name; | |
| 53 | |
| 54 // The strategy used to determine the mode's update channel, or UNSUPPORTED if | |
| 55 // the brand does not integrate with Google Update. | |
| 56 ChannelStrategy channel_strategy; | |
| 57 | |
| 58 // True if this mode supports system-level installs. | |
| 59 bool supports_system_level; | |
| 60 | |
| 61 // True if this mode supports multi-install. | |
| 62 bool supports_multi_install; | |
| 63 }; | |
| 64 | |
| 65 } // namespace install_static | |
| 66 | |
| 67 #endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | |
| OLD | NEW |