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. |
| 6 |
| 7 #ifndef CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| 8 #define CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
| 9 |
| 10 namespace install_static { |
| 11 |
| 12 // Identifies different strategies for determining an update channel. |
| 13 enum class ChannelStrategy { |
| 14 // Update channels are not supported. This value is for exclusive use by |
| 15 // brands that do not integrate with Google Update. |
| 16 UNSUPPORTED, |
| 17 // Update channel is determined by parsing the "ap" value in the registry. |
| 18 ADDITIONAL_PARAMETERS, |
| 19 // Update channel is a fixed value. |
| 20 FIXED, |
| 21 }; |
| 22 |
| 23 // A POD-struct defining constants for a brand's install mode. A brand may have |
| 24 // one primary and many secondary install modes. |
| 25 struct InstallConstants { |
| 26 // The brand-specific index/identifier of this instance (defined in a brand's |
| 27 // BRAND_install_modes.h file). Index 0 is reserved for a brand's primary |
| 28 // install mode. |
| 29 int index; |
| 30 |
| 31 // The install suffix of a secondary mode (e.g., " SxS" for canary Chrome) or |
| 32 // an empty string for the primary mode. |
| 33 const wchar_t* install_suffix; |
| 34 |
| 35 // The app guid with which this mode is registered with Google Update, or an |
| 36 // empty string if the brand does not integrate with Google Update. |
| 37 const wchar_t* app_guid; |
| 38 |
| 39 // The default name for this mode's update channel. |
| 40 const wchar_t* default_channel_name; |
| 41 |
| 42 // The strategy used to determine the mode's update channel, or UNSUPPORTED if |
| 43 // the brand does not integrate with Google Update. |
| 44 ChannelStrategy channel_strategy; |
| 45 |
| 46 // True if this mode supports system-level installs. |
| 47 bool supports_system_level; |
| 48 |
| 49 // True if this mode supports multi-install. |
| 50 bool supports_multi_install; |
| 51 }; |
| 52 |
| 53 } // namespace install_static |
| 54 |
| 55 #endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_ |
OLD | NEW |