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

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

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: another doc comment Created 3 years, 10 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
« no previous file with comments | « chrome/install_static/install_details.h ('k') | chrome/install_static/install_modes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This file declares constants that describe specifics of a Chromium-based 5 // This file declares constants that describe specifics of a Chromium-based
6 // browser's branding and modes of installation. 6 // browser's branding and modes of installation.
7 // 7 //
8 // A browser's brand comprises all identifying markings that distinguish it from 8 // A browser's brand comprises all identifying markings that distinguish it from
9 // a browser produced by another party. Chromium has remnants of both the 9 // a browser produced by another party. Chromium has remnants of both the
10 // Chromium and Google Chrome brands. 10 // Chromium and Google Chrome brands.
11 // 11 //
12 // Each brand defines one primary install mode for the browser. A brand may 12 // Each brand defines one primary install mode for the browser. A brand may
13 // additionally define one or more secondary install modes (e.g., Google 13 // additionally define one or more secondary install modes (e.g., Google
14 // Chrome's SxS mode for the canary channel). Install modes are described by 14 // Chrome's SxS mode for the canary channel). Install modes are described by
15 // compile-time instantiations of the `InstallConstants` struct in a brand's 15 // compile-time instantiations of the `InstallConstants` struct in a brand's
16 // `kInstallModes` array. Index 0 of this array always describes the primary 16 // `kInstallModes` array. Index 0 of this array always describes the primary
17 // install mode. All other entries describe secondary modes, which are 17 // install mode. All other entries describe secondary modes, which are
18 // distinguished by an install suffix (e.g., " SxS") that appears in file and 18 // distinguished by an install suffix (e.g., " SxS") that appears in file and
19 // registry paths. 19 // registry paths. A given machine may have any combination of a brand's modes
20 // installed at the same time (e.g., primary only, one or more secondary, or
21 // even primary and all secondary modes). Parallel installs of a brand's modes
22 // (e.g., Google Chrome and Google Chrome SxS (canary) installed on the same
23 // machine) store user data in distinct directories. Administrative policies, on
24 // the other hand, apply to all of a brand's install modes (e.g., the
25 // AlwaysOpenPdfExternally group policy setting applies to both Google Chrome
26 // and Google Chrome SxS.
20 27
21 #ifndef CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 28 #ifndef CHROME_INSTALL_STATIC_INSTALL_MODES_H_
22 #define CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 29 #define CHROME_INSTALL_STATIC_INSTALL_MODES_H_
23 30
24 #include <string> 31 #include <string>
25 32
26 #include "chrome/install_static/install_constants.h" 33 #include "chrome/install_static/install_constants.h"
27 34
28 // Include the brand-specific values. Each of these must define: 35 // Include the brand-specific values. Each of these must define:
29 // - enum InstallConstantIndex: named indices of the brand's kInstallModes 36 // - enum InstallConstantIndex: named indices of the brand's kInstallModes
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // A brand's collection of install modes. 72 // A brand's collection of install modes.
66 extern const InstallConstants kInstallModes[]; 73 extern const InstallConstants kInstallModes[];
67 74
68 // The following convenience functions behave conditionally on whether or not 75 // The following convenience functions behave conditionally on whether or not
69 // the brand uses Chrome's integration with Google Update. For brands that do 76 // the brand uses Chrome's integration with Google Update. For brands that do
70 // not (e.g., Chromium), they return something like "Software\Chromium" or 77 // not (e.g., Chromium), they return something like "Software\Chromium" or
71 // "Software\Chromium Binaries". Otherwise, for brands that do integrate with 78 // "Software\Chromium Binaries". Otherwise, for brands that do integrate with
72 // Google Update, they return something like 79 // Google Update, they return something like
73 // "Software\Google\Update\ClientState{Medium}\<guid>" where "<guid>" is either 80 // "Software\Google\Update\ClientState{Medium}\<guid>" where "<guid>" is either
74 // |mode|'s appguid or the brand's kBinariesAppGuid. 81 // |mode|'s appguid or the brand's kBinariesAppGuid.
82 std::wstring GetClientsKeyPath(const wchar_t* app_guid);
75 std::wstring GetClientStateKeyPath(const wchar_t* app_guid); 83 std::wstring GetClientStateKeyPath(const wchar_t* app_guid);
84 std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid);
85 std::wstring GetBinariesClientsKeyPath();
76 std::wstring GetBinariesClientStateKeyPath(); 86 std::wstring GetBinariesClientStateKeyPath();
77 std::wstring GetClientStateMediumKeyPath(const wchar_t* app_guid);
78 std::wstring GetBinariesClientStateMediumKeyPath(); 87 std::wstring GetBinariesClientStateMediumKeyPath();
79 88
80 } // namespace install_static 89 } // namespace install_static
81 90
82 #endif // CHROME_INSTALL_STATIC_INSTALL_MODES_H_ 91 #endif // CHROME_INSTALL_STATIC_INSTALL_MODES_H_
OLDNEW
« no previous file with comments | « chrome/install_static/install_details.h ('k') | chrome/install_static/install_modes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698