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"
14 extern const char kChromeVersion[];
16 extern const char kChromeVersionEnvVar[];
18 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
19 extern const base::FilePath::CharType kHelperProcessExecutableName[];
20 extern const base::FilePath::CharType kBrowserProcessExecutablePath[];
21 extern const base::FilePath::CharType kHelperProcessExecutablePath[];
22 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[];
23 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[];
24 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[];
25 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[];
26 #if defined(OS_MACOSX)
27 extern const base::FilePath::CharType kFrameworkName[];
29 // The helper .app bundle name and executable name may have one of these
30 // suffixes to identify specific features, or it may have no suffix at all.
31 // This is a NULL-terminated array of strings. If kHelperFlavorSuffixes
32 // contains "EN", "MF", and NULL, it indicates that if the normal helper is
33 // named Chromium Helper.app, helper executables could show up at any of
34 // Chromium Helper.app/Contents/MacOS/Chromium Helper,
35 // Chromium Helper EN.app/Contents/MacOS/Chromium Helper EN, and
36 // Chromium Helper MF.app/Contents/MacOS/Chromium Helper MF.
37 extern const base::FilePath::CharType* const kHelperFlavorSuffixes[];
40 extern const base::FilePath::CharType kMetroDriverDll[];
41 extern const wchar_t kStatusTrayWindowClass[];
42 #endif // defined(OS_WIN)
43 extern const wchar_t kCrashReportLog[];
44 extern const wchar_t kTestingInterfaceDLL[];
45 extern const char kInitialProfile[];
46 extern const char kMultiProfileDirPrefix[];
47 extern const base::FilePath::CharType kGuestProfileDir[];
48 extern const wchar_t kBrowserResourcesDll[];
51 #if defined(OS_ANDROID)
52 extern const base::FilePath::CharType kAndroidCacheFilename[];
54 extern const base::FilePath::CharType kArchivedHistoryFilename[];
55 extern const base::FilePath::CharType kBookmarksFileName[];
56 extern const base::FilePath::CharType kCacheDirname[];
57 extern const base::FilePath::CharType kCookieFilename[];
58 extern const base::FilePath::CharType kCRLSetFilename[];
59 extern const base::FilePath::CharType kCustomDictionaryFileName[];
60 extern const base::FilePath::CharType kExtensionActivityLogFilename[];
61 extern const base::FilePath::CharType kExtensionsCookieFilename[];
62 extern const base::FilePath::CharType kFaviconsFilename[];
63 extern const base::FilePath::CharType kFirstRunSentinel[];
64 extern const base::FilePath::CharType kHistoryFilename[];
65 extern const base::FilePath::CharType kJumpListIconDirname[];
66 extern const base::FilePath::CharType kLocalStateFilename[];
67 extern const base::FilePath::CharType kLocalStorePoolName[];
68 extern const base::FilePath::CharType kLoginDataFileName[];
69 extern const base::FilePath::CharType kManagedUserSettingsFilename[];
70 extern const base::FilePath::CharType kMediaCacheDirname[];
71 extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
72 extern const base::FilePath::CharType kOBCertFilename[];
73 extern const base::FilePath::CharType kPreferencesFilename[];
74 extern const base::FilePath::CharType kReadmeFilename[];
75 extern const base::FilePath::CharType kResetPromptMementoFilename[];
76 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
77 extern const base::FilePath::CharType kServiceStateFileName[];
78 extern const base::FilePath::CharType kShortcutsDatabaseName[];
79 extern const base::FilePath::CharType kSingletonCookieFilename[];
80 extern const base::FilePath::CharType kSingletonLockFilename[];
81 extern const base::FilePath::CharType kSingletonSocketFilename[];
82 extern const base::FilePath::CharType kSyncCredentialsFilename[];
83 extern const base::FilePath::CharType kThemePackFilename[];
84 extern const base::FilePath::CharType kThumbnailsFilename[];
85 extern const base::FilePath::CharType kTopSitesFilename[];
86 extern const base::FilePath::CharType kWebAppDirname[];
88 // File name of the Pepper Flash plugin on different platforms.
89 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
92 extern const wchar_t kUserDataDirname[];
94 extern const bool kRecordModeEnabled;
96 // If a WebContents is impolite and displays a second JavaScript alert within
97 // kJavaScriptMessageExpectedDelay of a previous JavaScript alert being
98 // dismissed, display an option to suppress future alerts from this WebContents.
99 extern const int kJavaScriptMessageExpectedDelay;
101 // Are touch icons enabled? False by default.
102 extern const bool kEnableTouchIcon;
104 // Fraction of the total number of processes to be used for hosting
105 // extensions. If we have more extensions than this percentage, we will start
106 // combining extensions in existing processes. This allows web pages to have
107 // enough render processes and not be starved when a lot of extensions are
109 extern const float kMaxShareOfExtensionProcesses;
111 // This is used by the PreRead experiment.
112 extern const char kPreReadEnvironmentVariable[];
114 #if defined(OS_LINUX)
115 // The highest and lowest assigned OOM score adjustment
116 // (oom_score_adj) used by the OomPriority Manager.
117 extern const int kLowestRendererOomScore;
118 extern const int kHighestRendererOomScore;
122 // Used by Metro Chrome to create the profile under a custom subdirectory.
123 extern const wchar_t kMetroChromeUserDataSubDir[];
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 by the browser as a container in which to track unreported crash dump
132 // attempts. The actual values (each representing one crash dump attempt) are
133 // stored in a subkey named with the version number of the build. Each value
134 // under the subkey represents an additional attempt.
135 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
138 #if defined(OS_CHROMEOS)
139 // Chrome OS profile directories have custom prefix.
140 // Profile path format: [user_data_dir]/u-[$hash]
141 // Ex.: /home/chronos/u-0123456789
142 extern const char kProfileDirPrefix[];
144 // Legacy profile dir that was used when only one cryptohome has been mounted.
145 extern const char kLegacyProfileDir[];
147 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
148 extern const char kTestUserProfileDir[];
151 // Used to identify the application to the system AV function in Windows.
152 extern const char kApplicationClientIDStringForAVScanning[];
154 } // namespace chrome
156 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_