Revert 248827 "android: Migrate old content readback to use asyn..."
[chromium-blink-merge.git] / chrome / common / chrome_constants.h
blobf2a67701adf1ff4e35faf1fd84108170031c6027
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 namespace chrome {
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[];
38 #endif // OS_MACOSX
39 #if defined(OS_WIN)
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[];
50 // filenames
51 #if defined(OS_ANDROID)
52 extern const base::FilePath::CharType kAndroidCacheFilename[];
53 #endif
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 kGCMStoreDirname[];
65 extern const base::FilePath::CharType kHistoryFilename[];
66 extern const base::FilePath::CharType kJumpListIconDirname[];
67 extern const base::FilePath::CharType kLocalStateFilename[];
68 extern const base::FilePath::CharType kLocalStorePoolName[];
69 extern const base::FilePath::CharType kLoginDataFileName[];
70 extern const base::FilePath::CharType kManagedUserSettingsFilename[];
71 extern const base::FilePath::CharType kMediaCacheDirname[];
72 extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
73 extern const base::FilePath::CharType kOBCertFilename[];
74 extern const base::FilePath::CharType kPreferencesFilename[];
75 extern const base::FilePath::CharType kReadmeFilename[];
76 extern const base::FilePath::CharType kResetPromptMementoFilename[];
77 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
78 extern const base::FilePath::CharType kServiceStateFileName[];
79 extern const base::FilePath::CharType kShortcutsDatabaseName[];
80 extern const base::FilePath::CharType kSingletonCookieFilename[];
81 extern const base::FilePath::CharType kSingletonLockFilename[];
82 extern const base::FilePath::CharType kSingletonSocketFilename[];
83 extern const base::FilePath::CharType kSyncCredentialsFilename[];
84 extern const base::FilePath::CharType kThemePackFilename[];
85 extern const base::FilePath::CharType kThumbnailsFilename[];
86 extern const base::FilePath::CharType kTopSitesFilename[];
87 extern const base::FilePath::CharType kWebAppDirname[];
89 // File name of the Pepper Flash plugin on different platforms.
90 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
92 // directory names
93 extern const wchar_t kUserDataDirname[];
95 extern const bool kRecordModeEnabled;
97 // If a WebContents is impolite and displays a second JavaScript alert within
98 // kJavaScriptMessageExpectedDelay of a previous JavaScript alert being
99 // dismissed, display an option to suppress future alerts from this WebContents.
100 extern const int kJavaScriptMessageExpectedDelay;
102 // Are touch icons enabled? False by default.
103 extern const bool kEnableTouchIcon;
105 // Fraction of the total number of processes to be used for hosting
106 // extensions. If we have more extensions than this percentage, we will start
107 // combining extensions in existing processes. This allows web pages to have
108 // enough render processes and not be starved when a lot of extensions are
109 // installed.
110 extern const float kMaxShareOfExtensionProcesses;
112 // This is used by the PreRead experiment.
113 extern const char kPreReadEnvironmentVariable[];
115 #if defined(OS_LINUX)
116 // The highest and lowest assigned OOM score adjustment
117 // (oom_score_adj) used by the OomPriority Manager.
118 extern const int kLowestRendererOomScore;
119 extern const int kHighestRendererOomScore;
120 #endif
122 #if defined(OS_WIN)
123 // Used by Metro Chrome to create the profile under a custom subdirectory.
124 extern const wchar_t kMetroChromeUserDataSubDir[];
125 // Used by Metro Chrome to initiate navigation and search requests.
126 extern const wchar_t kMetroNavigationAndSearchMessage[];
127 // Used by Metro Chrome to get information about the current tab.
128 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
129 // Used by Metro Chrome to store activation state.
130 extern const wchar_t kMetroRegistryPath[];
131 extern const wchar_t kLaunchModeValue[];
132 // Used by the browser as a container in which to track unreported crash dump
133 // attempts. The actual values (each representing one crash dump attempt) are
134 // stored in a subkey named with the version number of the build. Each value
135 // under the subkey represents an additional attempt.
136 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
137 // Used by chrome.exe to signal that chrome.dll was started via a key sequence
138 // that requires it to start in safe mode. For example, in software rendering.
139 extern const char kSafeModeEnvVar[];
140 #endif
142 #if defined(OS_CHROMEOS)
143 // Chrome OS profile directories have custom prefix.
144 // Profile path format: [user_data_dir]/u-[$hash]
145 // Ex.: /home/chronos/u-0123456789
146 extern const char kProfileDirPrefix[];
148 // Legacy profile dir that was used when only one cryptohome has been mounted.
149 extern const char kLegacyProfileDir[];
151 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
152 extern const char kTestUserProfileDir[];
153 #endif
155 // Used to identify the application to the system AV function in Windows.
156 extern const char kApplicationClientIDStringForAVScanning[];
158 #if defined(OS_ANDROID)
159 // The largest reasonable length we'd assume for a meta tag attribute.
160 extern const size_t kMaxMetaTagAttributeLength;
161 #endif
163 } // namespace chrome
165 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_