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

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

Issue 2031833002: Remove FilePath usage from the CrashReporterClient interface on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error Created 4 years, 6 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
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 // This file contains helper functions which provide information about the 4 // This file contains helper functions which provide information about the
5 // current version of Chrome. This includes channel information, version 5 // current version of Chrome. This includes channel information, version
6 // information etc. This functionality is provided by using functions in 6 // information etc. This functionality is provided by using functions in
7 // kernel32 and advapi32. No other dependencies are allowed in this file. 7 // kernel32 and advapi32. No other dependencies are allowed in this file.
8 8
9 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 9 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
10 #define CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 10 #define CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 16
17 namespace install_static { 17 namespace install_static {
18 18
19 enum class ProcessType { 19 enum class ProcessType {
20 UNINITIALIZED, 20 UNINITIALIZED,
21 NON_BROWSER_PROCESS, 21 NON_BROWSER_PROCESS,
22 BROWSER_PROCESS, 22 BROWSER_PROCESS,
23 }; 23 };
24 24
25 // TODO(ananta) 25 // TODO(ananta)
26 // http://crbug.com/604923 26 // https://crbug.com/604923
27 // The constants defined in this file are also defined in chrome/installer and 27 // The constants defined in this file are also defined in chrome/installer and
28 // other places. we need to unify them. 28 // other places. we need to unify them.
29
30 extern const wchar_t kChromeChannelUnknown[]; 29 extern const wchar_t kChromeChannelUnknown[];
31 extern const wchar_t kChromeChannelCanary[]; 30 extern const wchar_t kChromeChannelCanary[];
32 extern const wchar_t kChromeChannelDev[]; 31 extern const wchar_t kChromeChannelDev[];
33 extern const wchar_t kChromeChannelBeta[]; 32 extern const wchar_t kChromeChannelBeta[];
34 extern const wchar_t kChromeChannelStable[]; 33 extern const wchar_t kChromeChannelStable[];
35 extern const wchar_t kChromeChannelStableExplicit[]; 34 extern const wchar_t kChromeChannelStableExplicit[];
36 extern const wchar_t kRegPathClientState[]; 35 extern const wchar_t kRegPathClientState[];
37 extern const wchar_t kRegPathClientStateMedium[]; 36 extern const wchar_t kRegPathClientStateMedium[];
38 extern const wchar_t kRegPathChromePolicy[]; 37 extern const wchar_t kRegPathChromePolicy[];
39 extern const wchar_t kRegApField[]; 38 extern const wchar_t kRegApField[];
40 extern const wchar_t kRegValueUsageStats[]; 39 extern const wchar_t kRegValueUsageStats[];
41 extern const wchar_t kUninstallArgumentsField[]; 40 extern const wchar_t kUninstallArgumentsField[];
42 extern const wchar_t kMetricsReportingEnabled[]; 41 extern const wchar_t kMetricsReportingEnabled[];
43 extern const wchar_t kAppGuidCanary[]; 42 extern const wchar_t kAppGuidCanary[];
44 extern const wchar_t kAppGuidGoogleChrome[]; 43 extern const wchar_t kAppGuidGoogleChrome[];
45 extern const wchar_t kAppGuidGoogleBinaries[]; 44 extern const wchar_t kAppGuidGoogleBinaries[];
46 45
46 // TODO(ananta)
47 // https://crbug.com/604923
48 // Unify these constants with env_vars.h.
49 extern const char kHeadless[];
50 extern const char kShowRestart[];
51 extern const char kRestartInfo[];
52 extern const char kRtlLocale[];
53 extern const char kLtrLocale[];
54
55 // TODO(ananta)
56 // https://crbug.com/604923
57 // Unify these constants with those defined in content_switches.h.
58 extern const char kGpuProcess[];
59 extern const char kPpapiPluginProcess[];
60 extern const char kRendererProcess[];
61 extern const char kUtilityProcess[];
62 extern const char kZygoteProcess[];
grt (UTC plus 2) 2016/06/02 12:55:33 this constant is only used on linux, no? is this a
ananta 2016/06/02 20:34:20 It is not. However initially it was. Removed the c
63
47 // Returns true if |exe_path| points to a Chrome installed in an SxS 64 // Returns true if |exe_path| points to a Chrome installed in an SxS
48 // installation. 65 // installation.
49 bool IsSxSChrome(const wchar_t* exe_path); 66 bool IsSxSChrome(const wchar_t* exe_path);
50 67
51 // Returns true if |exe_path| points to a per-user level Chrome installation. 68 // Returns true if |exe_path| points to a per-user level Chrome installation.
52 bool IsSystemInstall(const wchar_t* exe_path); 69 bool IsSystemInstall(const wchar_t* exe_path);
53 70
54 // Returns true if current installation of Chrome is a multi-install. 71 // Returns true if current installation of Chrome is a multi-install.
55 bool IsMultiInstall(bool is_system_install); 72 bool IsMultiInstall(bool is_system_install);
56 73
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool CompareVersionStrings(const std::string& version1, 197 bool CompareVersionStrings(const std::string& version1,
181 const std::string& version2, 198 const std::string& version2,
182 int* result); 199 int* result);
183 200
184 // Caches the |ProcessType| of the current process. 201 // Caches the |ProcessType| of the current process.
185 extern ProcessType g_process_type; 202 extern ProcessType g_process_type;
186 203
187 } // namespace install_static 204 } // namespace install_static
188 205
189 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 206 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698