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

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

Issue 2422643002: Windows install_static refactor. (Closed)
Patch Set: maybe fix nacl64 Created 4 years, 2 months 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 // This file declares constants that describe specifics of a Chromium-based
6 // browser's branding (e.g., the name of the product) and modes of
7 // installation. Each brand has one primary mode (at index 0 of kInstallModes)
8 // and one or more secondary modes. Secondary install modes are distinguished by
9 // an install suffix (e.g., " SxS") that appears in file and registry paths.
10
11 #ifndef CHROME_INSTALL_STATIC_INSTALL_MODES_H_
12 #define CHROME_INSTALL_STATIC_INSTALL_MODES_H_
13
14 #include <string>
15
16 #include "chrome/install_static/install_details.h"
17
18 // Include the brand-specific values. Each of these must define:
19 // - enum InstallConstantIndex: named indices of the brand's kInstallModes
20 // array.
21 // - NUM_INSTALL_MODES: the total numer of modes (i.e., the numer of items in
22 // kInstallModes.
23 // - kUseGoogleUpdateIntegration: true or false indicating whether or not the
24 // brand uses Chrome's integration with Google Update.
25 #if defined(GOOGLE_CHROME_BUILD)
26 #include "chrome/install_static/google_chrome_install_modes.h"
27 #else
28 #include "chrome/install_static/chromium_install_modes.h"
29 #endif
30
31 namespace install_static {
32
33 // The brand-specific company name to be included as a component of the install
34 // and user data directory paths. May be empty if no such dir is to be used.
35 extern const wchar_t kCompanyPathName[];
36
37 // The brand-specific product name to be included as a component of the install
38 // and user data directory paths.
39 extern const wchar_t kProductPathName[];
40
41 // The length, in characters, of kProductPathName not including the terminator.
42 extern const size_t kProductPathNameLength;
43
44 // The GUID with which the brand's multi-install binaries are registered with
45 // Google Update. Must be empty if the brand does not integrate with Google
46 // Update.
47 extern const wchar_t kBinariesAppGuid[];
48
49 // The name of the registry key in which data for the brand's multi-install
50 // binaries are stored. Must be empty if the brand integrates with Google
51 // Update.
52 extern const wchar_t kBinariesPathName[];
53
54 // A brand's collection of install modes.
55 extern const InstallConstants kInstallModes[];
56
57 // The following convenience functions behave conditionally on whether or not
58 // the brand uses Chrome's integration with Google Update. For brands that do
59 // not (e.g., Chromium), they return something like "Software\Chromium" or
60 // "Software\Chromium Binaries". Otherwise, for brands that do integrate with
61 // Google Update, they return something like
62 // "Software\Google\Update\ClientState{Medium}\<guid>" where "<guid>" is either
63 // |mode|'s appguid or the brand's kBinariesAppGuid.
64 std::wstring GetClientStateKeyPath(const wchar_t* app_guid);
65 std::wstring GetBinariesClientStateKeyPath();
66 std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid);
67 std::wstring GetBinariesClientStateMediumKeyPath();
68
69 } // namespace install_static
70
71 #endif // CHROME_INSTALL_STATIC_INSTALL_MODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698