Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / chrome / common / chrome_constants.h
blob10184ddf103b7a97ac1fb1a2989ae15f4611e271
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"
12 #if defined(OS_WIN)
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"
17 #else
18 #error Unknown branding
19 #endif
20 #endif // defined(OS_WIN)
22 namespace chrome {
24 extern const char kChromeVersion[];
26 extern const char kChromeVersionEnvVar[];
28 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
29 extern const base::FilePath::CharType kHelperProcessExecutableName[];
30 extern const base::FilePath::CharType kBrowserProcessExecutablePath[];
31 extern const base::FilePath::CharType kHelperProcessExecutablePath[];
32 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[];
33 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[];
34 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[];
35 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[];
36 #if defined(OS_MACOSX)
37 // NOTE: if you change the value of kFrameworkName, please don't forget to
38 // update components/test/run_all_unittests.cc as well.
39 // TODO(tfarina): Remove the comment above, when you fix components to use plist
40 // on Mac.
41 extern const base::FilePath::CharType kFrameworkName[];
43 // The helper .app bundle name and executable name may have one of these
44 // suffixes to identify specific features, or it may have no suffix at all.
45 // This is a NULL-terminated array of strings. If kHelperFlavorSuffixes
46 // contains "EN", "MF", and NULL, it indicates that if the normal helper is
47 // named Chromium Helper.app, helper executables could show up at any of
48 // Chromium Helper.app/Contents/MacOS/Chromium Helper,
49 // Chromium Helper EN.app/Contents/MacOS/Chromium Helper EN, and
50 // Chromium Helper MF.app/Contents/MacOS/Chromium Helper MF.
51 extern const base::FilePath::CharType* const kHelperFlavorSuffixes[];
52 #endif // OS_MACOSX
53 #if defined(OS_WIN)
54 extern const base::FilePath::CharType kMetroDriverDll[];
55 extern const wchar_t kStatusTrayWindowClass[];
56 #endif // defined(OS_WIN)
57 extern const wchar_t kCrashReportLog[];
58 extern const wchar_t kTestingInterfaceDLL[];
59 extern const char kInitialProfile[];
60 extern const char kMultiProfileDirPrefix[];
61 extern const base::FilePath::CharType kGuestProfileDir[];
62 extern const wchar_t kBrowserResourcesDll[];
64 // filenames
65 #if defined(OS_ANDROID)
66 extern const base::FilePath::CharType kAndroidCacheFilename[];
67 #endif
68 extern const base::FilePath::CharType kArchivedHistoryFilename[];
69 extern const base::FilePath::CharType kCacheDirname[];
70 extern const base::FilePath::CharType kChannelIDFilename[];
71 extern const base::FilePath::CharType kCookieFilename[];
72 extern const base::FilePath::CharType kCRLSetFilename[];
73 extern const base::FilePath::CharType kCustomDictionaryFileName[];
74 extern const base::FilePath::CharType kExtensionActivityLogFilename[];
75 extern const base::FilePath::CharType kExtensionsCookieFilename[];
76 extern const base::FilePath::CharType kFaviconsFilename[];
77 extern const base::FilePath::CharType kFirstRunSentinel[];
78 extern const base::FilePath::CharType kGCMStoreDirname[];
79 extern const base::FilePath::CharType kHistoryFilename[];
80 extern const base::FilePath::CharType kJumpListIconDirname[];
81 extern const base::FilePath::CharType kLocalStateFilename[];
82 extern const base::FilePath::CharType kLocalStorePoolName[];
83 extern const base::FilePath::CharType kLoginDataFileName[];
84 extern const base::FilePath::CharType kMediaCacheDirname[];
85 extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
86 extern const base::FilePath::CharType kPreferencesFilename[];
87 extern const base::FilePath::CharType kProtectedPreferencesFilenameDeprecated[];
88 extern const base::FilePath::CharType kReadmeFilename[];
89 extern const base::FilePath::CharType kResetPromptMementoFilename[];
90 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
91 extern const base::FilePath::CharType kSecurePreferencesFilename[];
92 extern const base::FilePath::CharType kServiceStateFileName[];
93 extern const base::FilePath::CharType kShortcutsDatabaseName[];
94 extern const base::FilePath::CharType kSingletonCookieFilename[];
95 extern const base::FilePath::CharType kSingletonLockFilename[];
96 extern const base::FilePath::CharType kSingletonSocketFilename[];
97 extern const base::FilePath::CharType kSupervisedUserSettingsFilename[];
98 extern const base::FilePath::CharType kSyncCredentialsFilename[];
99 extern const base::FilePath::CharType kThemePackFilename[];
100 extern const base::FilePath::CharType kThumbnailsFilename[];
101 extern const base::FilePath::CharType kTopSitesFilename[];
102 extern const base::FilePath::CharType kWebAppDirname[];
104 // File name of the Pepper Flash plugin on different platforms.
105 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
107 // directory names
108 extern const wchar_t kUserDataDirname[];
110 extern const bool kRecordModeEnabled;
112 // Are touch icons enabled? False by default.
113 extern const bool kEnableTouchIcon;
115 // Fraction of the total number of processes to be used for hosting
116 // extensions. If we have more extensions than this percentage, we will start
117 // combining extensions in existing processes. This allows web pages to have
118 // enough render processes and not be starved when a lot of extensions are
119 // installed.
120 extern const float kMaxShareOfExtensionProcesses;
122 #if defined(OS_LINUX)
123 // The highest and lowest assigned OOM score adjustment
124 // (oom_score_adj) used by the OomPriority Manager.
125 extern const int kLowestRendererOomScore;
126 extern const int kHighestRendererOomScore;
127 #endif
129 #if defined(OS_WIN)
130 // Used by Metro Chrome to initiate navigation and search requests.
131 extern const wchar_t kMetroNavigationAndSearchMessage[];
132 // Used by Metro Chrome to get information about the current tab.
133 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
134 // Used by Metro Chrome to store activation state.
135 extern const wchar_t kMetroRegistryPath[];
136 extern const wchar_t kLaunchModeValue[];
137 // Used by the browser as a container in which to track unreported crash dump
138 // attempts. The actual values (each representing one crash dump attempt) are
139 // stored in a subkey named with the version number of the build. Each value
140 // under the subkey represents an additional attempt.
141 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
142 // Used by chrome.exe to signal that chrome.dll was started via a key sequence
143 // that requires it to start in safe mode. For example, in software rendering.
144 extern const char kSafeModeEnvVar[];
145 #endif
147 #if defined(OS_CHROMEOS)
148 // Chrome OS profile directories have custom prefix.
149 // Profile path format: [user_data_dir]/u-[$hash]
150 // Ex.: /home/chronos/u-0123456789
151 extern const char kProfileDirPrefix[];
153 // Legacy profile dir that was used when only one cryptohome has been mounted.
154 extern const char kLegacyProfileDir[];
156 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
157 extern const char kTestUserProfileDir[];
158 #endif
160 // Used to identify the application to the system AV function in Windows.
161 extern const char kApplicationClientIDStringForAVScanning[];
163 // The largest reasonable length we'd assume for a meta tag attribute.
164 extern const size_t kMaxMetaTagAttributeLength;
166 } // namespace chrome
168 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_