| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Defines the struct used to describe each of a brand's install modes; see | 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, | 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. | 7 // each mode also describes a strategy for determining its update channel. |
| 8 | 8 |
| 9 #ifndef CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | 9 #ifndef CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| 10 #define CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | 10 #define CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 struct InstallConstants { | 32 struct InstallConstants { |
| 33 // The size (in bytes) of this structure. This serves to verify that all | 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. | 34 // modules in a process have the same definition of the struct. |
| 35 size_t size; | 35 size_t size; |
| 36 | 36 |
| 37 // The brand-specific index/identifier of this instance (defined in a brand's | 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 | 38 // BRAND_install_modes.h file). Index 0 is reserved for a brand's primary |
| 39 // install mode. | 39 // install mode. |
| 40 int index; | 40 int index; |
| 41 | 41 |
| 42 // The command-line switch originally passed to the installer to select this |
| 43 // install mode. |
| 44 const char* install_switch; |
| 45 |
| 42 // The install suffix of a secondary mode (e.g., " SxS" for canary Chrome) or | 46 // 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 | 47 // an empty string for the primary mode. This suffix is appended to file and |
| 44 // registry paths used by the product. | 48 // registry paths used by the product. |
| 45 const wchar_t* install_suffix; | 49 const wchar_t* install_suffix; |
| 46 | 50 |
| 51 // The suffix for the logos corresponding to this install mode. The |
| 52 // VisualElementsManifest generated by the installer will use this suffix to |
| 53 // reference the proper logos so that they appear in the Start Menu. |
| 54 const wchar_t* logo_suffix; |
| 55 |
| 47 // The app guid with which this mode is registered with Google Update, or an | 56 // 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. | 57 // empty string if the brand does not integrate with Google Update. |
| 49 const wchar_t* app_guid; | 58 const wchar_t* app_guid; |
| 50 | 59 |
| 51 // The default name for this mode's update channel. | 60 // The default name for this mode's update channel. |
| 52 const wchar_t* default_channel_name; | 61 const wchar_t* default_channel_name; |
| 53 | 62 |
| 54 // The strategy used to determine the mode's update channel, or UNSUPPORTED if | 63 // The strategy used to determine the mode's update channel, or UNSUPPORTED if |
| 55 // the brand does not integrate with Google Update. | 64 // the brand does not integrate with Google Update. |
| 56 ChannelStrategy channel_strategy; | 65 ChannelStrategy channel_strategy; |
| 57 | 66 |
| 58 // True if this mode supports system-level installs. | 67 // True if this mode supports system-level installs. |
| 59 bool supports_system_level; | 68 bool supports_system_level; |
| 60 | 69 |
| 61 // True if this mode supported the now-deprecated multi-install. | 70 // True if this mode supported the now-deprecated multi-install. |
| 62 bool supported_multi_install; | 71 bool supported_multi_install; |
| 63 }; | 72 }; |
| 64 | 73 |
| 65 } // namespace install_static | 74 } // namespace install_static |
| 66 | 75 |
| 67 #endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ | 76 #endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| OLD | NEW |