Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/install_static/install_constants.h

Issue 2422643002: Windows install_static refactor. (Closed)
Patch Set: sync to position 428354 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 {
Sigurður Ásgeirsson 2016/10/28 15:44:16 Because an array of this structure is passed acros
grt (UTC plus 2) 2016/10/31 10:44:30 Done.
33 // The brand-specific index/identifier of this instance (defined in a brand's
34 // BRAND_install_modes.h file). Index 0 is reserved for a brand's primary
35 // install mode.
36 int index;
37
38 // The install suffix of a secondary mode (e.g., " SxS" for canary Chrome) or
39 // an empty string for the primary mode. This suffix is appended to file and
40 // registry paths used by the product.
41 const wchar_t* install_suffix;
42
43 // The app guid with which this mode is registered with Google Update, or an
44 // empty string if the brand does not integrate with Google Update.
45 const wchar_t* app_guid;
46
47 // The default name for this mode's update channel.
48 const wchar_t* default_channel_name;
49
50 // The strategy used to determine the mode's update channel, or UNSUPPORTED if
51 // the brand does not integrate with Google Update.
52 ChannelStrategy channel_strategy;
53
54 // True if this mode supports system-level installs.
55 bool supports_system_level;
56
57 // True if this mode supports multi-install.
58 bool supports_multi_install;
59 };
60
61 } // namespace install_static
62
63 #endif // CHROME_INSTALL_STATIC_INSTALL_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698