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
[];
46 extern const base::FilePath::CharType kBrowserResourcesDll
[];
47 extern const base::FilePath::CharType kMetroDriverDll
[];
48 extern const base::FilePath::CharType kStatusTrayWindowClass
[];
49 #endif // defined(OS_WIN)
51 extern const char kInitialProfile
[];
52 extern const char kMultiProfileDirPrefix
[];
53 extern const base::FilePath::CharType kGuestProfileDir
[];
54 extern const base::FilePath::CharType kSystemProfileDir
[];
57 extern const base::FilePath::CharType kAffiliationDatabaseFileName
[];
58 extern const base::FilePath::CharType kCacheDirname
[];
59 extern const base::FilePath::CharType kChannelIDFilename
[];
60 extern const base::FilePath::CharType kCookieFilename
[];
61 extern const base::FilePath::CharType kCRLSetFilename
[];
62 extern const base::FilePath::CharType kCustomDictionaryFileName
[];
63 extern const base::FilePath::CharType kExtensionActivityLogFilename
[];
64 extern const base::FilePath::CharType kExtensionsCookieFilename
[];
65 extern const base::FilePath::CharType kFirstRunSentinel
[];
66 extern const base::FilePath::CharType kGCMStoreDirname
[];
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 kMediaCacheDirname
[];
71 extern const base::FilePath::CharType kNetworkPersistentStateFilename
[];
72 extern const base::FilePath::CharType kOfflinePageMetadataDirname
[];
73 extern const base::FilePath::CharType kPreferencesFilename
[];
74 extern const base::FilePath::CharType kProtectedPreferencesFilenameDeprecated
[];
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 kSecurePreferencesFilename
[];
79 extern const base::FilePath::CharType kServiceStateFileName
[];
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 kSupervisedUserSettingsFilename
[];
84 extern const base::FilePath::CharType kThemePackFilename
[];
85 extern const base::FilePath::CharType kWebAppDirname
[];
88 extern const base::FilePath::CharType kJumpListIconDirname
[];
91 // File name of the Pepper Flash plugin on different platforms.
92 extern const base::FilePath::CharType kPepperFlashPluginFilename
[];
96 extern const wchar_t kUserDataDirname
[];
99 // Fraction of the total number of processes to be used for hosting
100 // extensions. If we have more extensions than this percentage, we will start
101 // combining extensions in existing processes. This allows web pages to have
102 // enough render processes and not be starved when a lot of extensions are
104 extern const float kMaxShareOfExtensionProcesses
;
106 #if defined(OS_LINUX)
107 // The highest and lowest assigned OOM score adjustment
108 // (oom_score_adj) used by the OomPriority Manager.
109 extern const int kLowestRendererOomScore
;
110 extern const int kHighestRendererOomScore
;
114 // Used by Metro Chrome to initiate navigation and search requests.
115 extern const wchar_t kMetroNavigationAndSearchMessage
[];
116 // Used by Metro Chrome to get information about the current tab.
117 extern const wchar_t kMetroGetCurrentTabInfoMessage
[];
118 // Used by Metro Chrome to store activation state.
119 extern const wchar_t kMetroRegistryPath
[];
120 extern const wchar_t kLaunchModeValue
[];
121 // Used to store crash report metrics using
122 // content/browser_watcher/crash_reporting_metrics_win.h.
123 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath
[];
124 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPathSxS
[];
125 // Registry location where the browser watcher stores browser exit codes.
126 // This is picked up and stored in histograms by the browser on the subsequent
128 extern const wchar_t kBrowserExitCodesRegistryPath
[];
131 #if defined(OS_CHROMEOS)
132 // Chrome OS profile directories have custom prefix.
133 // Profile path format: [user_data_dir]/u-[$hash]
134 // Ex.: /home/chronos/u-0123456789
135 extern const char kProfileDirPrefix
[];
137 // Legacy profile dir that was used when only one cryptohome has been mounted.
138 extern const char kLegacyProfileDir
[];
140 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
141 extern const char kTestUserProfileDir
[];
144 // Used to identify the application to the system AV function in Windows.
145 extern const char kApplicationClientIDStringForAVScanning
[];
147 // The largest reasonable length we'd assume for a meta tag attribute.
148 extern const size_t kMaxMetaTagAttributeLength
;
150 } // namespace chrome
152 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_