Componentize kShortcutsDatabaseName into //components/omnibox.
[chromium-blink-merge.git] / chrome / common / chrome_constants.h
blob8d688879aa439246a3aafbcc503ea18ea2579424
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 #if defined(OS_WIN)
27 extern const char kChromeVersionEnvVar[];
28 #endif
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
42 // on Mac.
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[];
54 #endif // OS_MACOSX
55 #if defined(OS_WIN)
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[];
66 // filenames
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[];
97 #if defined(OS_WIN)
98 extern const base::FilePath::CharType kJumpListIconDirname[];
99 #endif
101 // File name of the Pepper Flash plugin on different platforms.
102 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
104 // directory names
105 #if defined(OS_WIN)
106 extern const wchar_t kUserDataDirname[];
107 #endif
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
113 // installed.
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;
121 #endif
123 #if defined(OS_WIN)
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
137 // launch.
138 extern const wchar_t kBrowserExitCodesRegistryPath[];
139 #endif
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[];
152 #endif
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_