1 // Copyright (c) 2012 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.
5 // A handful of resource-like constants related to the Chrome application.
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_
10 #include "base/files/file_path.h"
13 #if defined(GOOGLE_CHROME_BUILD)
14 #define PRODUCT_STRING_PATH L"Google\\Chrome"
15 #elif defined(CHROMIUM_BUILD)
16 #define PRODUCT_STRING_PATH L"Chromium"
18 #error Unknown branding
20 #endif // defined(OS_WIN)
24 extern const char kChromeVersion
[];
27 extern const char kChromeVersionEnvVar
[];
30 extern const base::FilePath::CharType kBrowserProcessExecutableName
[];
31 extern const base::FilePath::CharType kHelperProcessExecutableName
[];
32 extern const base::FilePath::CharType kBrowserProcessExecutablePath
[];
33 extern const base::FilePath::CharType kHelperProcessExecutablePath
[];
34 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium
[];
35 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium
[];
36 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium
[];
37 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium
[];
38 #if defined(OS_MACOSX)
39 // NOTE: if you change the value of kFrameworkName, please don't forget to
40 // update components/test/run_all_unittests.cc as well.
41 // TODO(tfarina): Remove the comment above, when you fix components to use plist
43 extern const base::FilePath::CharType kFrameworkName
[];
45 // The helper .app bundle name and executable name may have one of these
46 // suffixes to identify specific features, or it may have no suffix at all.
47 // This is a NULL-terminated array of strings. If kHelperFlavorSuffixes
48 // contains "EN", "MF", and NULL, it indicates that if the normal helper is
49 // named Chromium Helper.app, helper executables could show up at any of
50 // Chromium Helper.app/Contents/MacOS/Chromium Helper,
51 // Chromium Helper EN.app/Contents/MacOS/Chromium Helper EN, and
52 // Chromium Helper MF.app/Contents/MacOS/Chromium Helper MF.
53 extern const base::FilePath::CharType
* const kHelperFlavorSuffixes
[];
56 extern const base::FilePath::CharType kBrowserResourcesDll
[];
57 extern const base::FilePath::CharType kMetroDriverDll
[];
58 extern const base::FilePath::CharType kStatusTrayWindowClass
[];
59 #endif // defined(OS_WIN)
61 extern const char kInitialProfile
[];
62 extern const char kMultiProfileDirPrefix
[];
63 extern const base::FilePath::CharType kGuestProfileDir
[];
64 extern const base::FilePath::CharType kSystemProfileDir
[];
67 extern const base::FilePath::CharType kAffiliationDatabaseFileName
[];
68 extern const base::FilePath::CharType kCacheDirname
[];
69 extern const base::FilePath::CharType kChannelIDFilename
[];
70 extern const base::FilePath::CharType kCookieFilename
[];
71 extern const base::FilePath::CharType kCRLSetFilename
[];
72 extern const base::FilePath::CharType kCustomDictionaryFileName
[];
73 extern const base::FilePath::CharType kExtensionActivityLogFilename
[];
74 extern const base::FilePath::CharType kExtensionsCookieFilename
[];
75 extern const base::FilePath::CharType kFirstRunSentinel
[];
76 extern const base::FilePath::CharType kGCMStoreDirname
[];
77 extern const base::FilePath::CharType kLocalStateFilename
[];
78 extern const base::FilePath::CharType kLocalStorePoolName
[];
79 extern const base::FilePath::CharType kLoginDataFileName
[];
80 extern const base::FilePath::CharType kMediaCacheDirname
[];
81 extern const base::FilePath::CharType kNetworkPersistentStateFilename
[];
82 extern const base::FilePath::CharType kOfflinePageMetadataDirname
[];
83 extern const base::FilePath::CharType kPreferencesFilename
[];
84 extern const base::FilePath::CharType kProtectedPreferencesFilenameDeprecated
[];
85 extern const base::FilePath::CharType kReadmeFilename
[];
86 extern const base::FilePath::CharType kResetPromptMementoFilename
[];
87 extern const base::FilePath::CharType kSafeBrowsingBaseFilename
[];
88 extern const base::FilePath::CharType kSecurePreferencesFilename
[];
89 extern const base::FilePath::CharType kServiceStateFileName
[];
90 extern const base::FilePath::CharType kSingletonCookieFilename
[];
91 extern const base::FilePath::CharType kSingletonLockFilename
[];
92 extern const base::FilePath::CharType kSingletonSocketFilename
[];
93 extern const base::FilePath::CharType kSupervisedUserSettingsFilename
[];
94 extern const base::FilePath::CharType kThemePackFilename
[];
95 extern const base::FilePath::CharType kWebAppDirname
[];
98 extern const base::FilePath::CharType kJumpListIconDirname
[];
101 // File name of the Pepper Flash plugin on different platforms.
102 extern const base::FilePath::CharType kPepperFlashPluginFilename
[];
106 extern const wchar_t kUserDataDirname
[];
109 // Fraction of the total number of processes to be used for hosting
110 // extensions. If we have more extensions than this percentage, we will start
111 // combining extensions in existing processes. This allows web pages to have
112 // enough render processes and not be starved when a lot of extensions are
114 extern const float kMaxShareOfExtensionProcesses
;
116 #if defined(OS_LINUX)
117 // The highest and lowest assigned OOM score adjustment
118 // (oom_score_adj) used by the OomPriority Manager.
119 extern const int kLowestRendererOomScore
;
120 extern const int kHighestRendererOomScore
;
124 // Used by Metro Chrome to initiate navigation and search requests.
125 extern const wchar_t kMetroNavigationAndSearchMessage
[];
126 // Used by Metro Chrome to get information about the current tab.
127 extern const wchar_t kMetroGetCurrentTabInfoMessage
[];
128 // Used by Metro Chrome to store activation state.
129 extern const wchar_t kMetroRegistryPath
[];
130 extern const wchar_t kLaunchModeValue
[];
131 // Used to store crash report metrics using
132 // content/browser_watcher/crash_reporting_metrics_win.h.
133 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath
[];
134 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPathSxS
[];
135 // Registry location where the browser watcher stores browser exit codes.
136 // This is picked up and stored in histograms by the browser on the subsequent
138 extern const wchar_t kBrowserExitCodesRegistryPath
[];
141 #if defined(OS_CHROMEOS)
142 // Chrome OS profile directories have custom prefix.
143 // Profile path format: [user_data_dir]/u-[$hash]
144 // Ex.: /home/chronos/u-0123456789
145 extern const char kProfileDirPrefix
[];
147 // Legacy profile dir that was used when only one cryptohome has been mounted.
148 extern const char kLegacyProfileDir
[];
150 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
151 extern const char kTestUserProfileDir
[];
154 // Used to identify the application to the system AV function in Windows.
155 extern const char kApplicationClientIDStringForAVScanning
[];
157 // The largest reasonable length we'd assume for a meta tag attribute.
158 extern const size_t kMaxMetaTagAttributeLength
;
160 } // namespace chrome
162 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_