[email protected] | b50368b | 2012-02-18 00:02:13 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
| 5 | // A handful of resource-like constants related to the Chrome application. |
| 6 | |
[email protected] | 6de7445 | 2009-02-25 18:04:59 | [diff] [blame] | 7 | #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ |
| 8 | #define CHROME_COMMON_CHROME_CONSTANTS_H_ |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 9 | |
[email protected] | 5799981 | 2013-02-24 05:40:52 | [diff] [blame^] | 10 | #include "base/files/file_path.h" |
[email protected] | c870c76 | 2009-01-28 05:47:15 | [diff] [blame] | 11 | |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 12 | namespace chrome { |
| 13 | |
[email protected] | 1405220a | 2009-10-14 22:01:26 | [diff] [blame] | 14 | extern const char kChromeVersion[]; |
| 15 | |
[email protected] | 03d21b8 | 2010-12-07 19:37:22 | [diff] [blame] | 16 | extern const char kChromeVersionEnvVar[]; |
| 17 | |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 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[]; |
[email protected] | 6a271dba | 2009-10-08 20:03:54 | [diff] [blame] | 26 | #if defined(OS_MACOSX) |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 27 | extern const base::FilePath::CharType kFrameworkName[]; |
[email protected] | 8c40f32 | 2011-08-24 03:33:36 | [diff] [blame] | 28 | |
| 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. |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 37 | extern const base::FilePath::CharType* const kHelperFlavorSuffixes[]; |
[email protected] | 8c40f32 | 2011-08-24 03:33:36 | [diff] [blame] | 38 | #endif // OS_MACOSX |
[email protected] | 86b5401 | 2009-11-19 09:18:50 | [diff] [blame] | 39 | #if defined(OS_WIN) |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 40 | extern const base::FilePath::CharType kMetroDriverDll[]; |
[email protected] | a24642a | 2010-03-24 21:29:05 | [diff] [blame] | 41 | extern const wchar_t kStatusTrayWindowClass[]; |
[email protected] | 86b5401 | 2009-11-19 09:18:50 | [diff] [blame] | 42 | #endif // defined(OS_WIN) |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 43 | extern const wchar_t kMessageWindowClass[]; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 44 | extern const wchar_t kCrashReportLog[]; |
| 45 | extern const wchar_t kTestingInterfaceDLL[]; |
[email protected] | d778d6e | 2011-08-12 09:47:05 | [diff] [blame] | 46 | extern const char kInitialProfile[]; |
[email protected] | 29d7025 | 2011-04-28 02:16:58 | [diff] [blame] | 47 | extern const char kMultiProfileDirPrefix[]; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 48 | extern const wchar_t kBrowserResourcesDll[]; |
[email protected] | 103607e | 2010-02-01 18:57:09 | [diff] [blame] | 49 | extern const wchar_t kNaClAppName[]; |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 50 | extern const base::FilePath::CharType kExtensionFileExtension[]; |
| 51 | extern const base::FilePath::CharType kExtensionKeyFileExtension[]; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 52 | |
| 53 | // filenames |
[email protected] | d41e657 | 2012-05-04 20:49:42 | [diff] [blame] | 54 | #if defined(OS_ANDROID) |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 55 | extern const base::FilePath::CharType kAndroidCacheFilename[]; |
[email protected] | d41e657 | 2012-05-04 20:49:42 | [diff] [blame] | 56 | #endif |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 57 | extern const base::FilePath::CharType kArchivedHistoryFilename[]; |
| 58 | extern const base::FilePath::CharType kBookmarksFileName[]; |
| 59 | extern const base::FilePath::CharType kCacheDirname[]; |
| 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 kFaviconsFilename[]; |
| 66 | extern const base::FilePath::CharType kFirstRunSentinel[]; |
| 67 | extern const base::FilePath::CharType kHistoryFilename[]; |
| 68 | extern const base::FilePath::CharType kJumpListIconDirname[]; |
| 69 | extern const base::FilePath::CharType kLocalStateFilename[]; |
| 70 | extern const base::FilePath::CharType kLoginDataFileName[]; |
| 71 | extern const base::FilePath::CharType kManagedModePolicyFilename[]; |
| 72 | extern const base::FilePath::CharType kMediaCacheDirname[]; |
| 73 | extern const base::FilePath::CharType kNewTabThumbnailsFilename[]; |
| 74 | extern const base::FilePath::CharType kOBCertFilename[]; |
| 75 | extern const base::FilePath::CharType kPreferencesFilename[]; |
| 76 | extern const base::FilePath::CharType kReadmeFilename[]; |
| 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[]; |
| 88 | extern const base::FilePath::CharType kWebDataFilename[]; |
[email protected] | 931be37 | 2012-06-27 00:39:06 | [diff] [blame] | 89 | |
| 90 | // File name of the Pepper Flash plugin on different platforms. |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 91 | extern const base::FilePath::CharType kPepperFlashPluginFilename[]; |
[email protected] | 931be37 | 2012-06-27 00:39:06 | [diff] [blame] | 92 | |
| 93 | // directory names |
| 94 | extern const wchar_t kUserDataDirname[]; |
[email protected] | 65a9cc1 | 2012-03-20 15:10:18 | [diff] [blame] | 95 | |
[email protected] | c579a17 | 2012-03-10 01:12:17 | [diff] [blame] | 96 | #if defined(OS_CHROMEOS) |
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 97 | extern const base::FilePath::CharType kDriveCacheDirname[]; |
[email protected] | c579a17 | 2012-03-10 01:12:17 | [diff] [blame] | 98 | #endif // defined(OS_CHROMEOS) |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 99 | |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 100 | extern const bool kRecordModeEnabled; |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 101 | |
[email protected] | 655f97c3 | 2010-07-22 21:24:17 | [diff] [blame] | 102 | // The language code used when the language of a page could not be detected. |
| 103 | // (Matches what the CLD -Compact Language Detection- library reports.) |
| 104 | extern const char* const kUnknownLanguageCode; |
| 105 | |
[email protected] | 1698f61 | 2011-03-11 11:28:15 | [diff] [blame] | 106 | // If another javascript message box is displayed within |
| 107 | // kJavascriptMessageExpectedDelay of a previous javascript message box being |
| 108 | // dismissed, display an option to suppress future message boxes from this |
| 109 | // contents. |
| 110 | extern const int kJavascriptMessageExpectedDelay; |
| 111 | |
[email protected] | 42054a25 | 2011-05-17 18:02:13 | [diff] [blame] | 112 | // Are touch icons enabled? False by default. |
| 113 | extern const bool kEnableTouchIcon; |
| 114 | |
[email protected] | 76411f41 | 2012-02-22 18:56:06 | [diff] [blame] | 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; |
| 121 | |
[email protected] | 03eb9d2 | 2011-08-23 17:58:21 | [diff] [blame] | 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 |
| 128 | |
[email protected] | 28f576f | 2011-08-26 20:46:55 | [diff] [blame] | 129 | #if defined(OS_WIN) |
| 130 | // This is used by the PreRead experiment. |
| 131 | extern const char kPreReadEnvironmentVariable[]; |
[email protected] | 025c3051 | 2012-04-19 00:07:36 | [diff] [blame] | 132 | // Used by Metro Chrome to create the profile under a custom subdirectory. |
| 133 | extern const wchar_t kMetroChromeUserDataSubDir[]; |
[email protected] | 1da92ab | 2012-04-30 21:23:40 | [diff] [blame] | 134 | // Used by Metro Chrome to initiate navigation and search requests. |
| 135 | extern const wchar_t kMetroNavigationAndSearchMessage[]; |
[email protected] | ec6ad4e | 2012-05-02 21:22:12 | [diff] [blame] | 136 | // Used by Metro Chrome to get information about the current tab. |
| 137 | extern const wchar_t kMetroGetCurrentTabInfoMessage[]; |
[email protected] | f2802ccb | 2012-09-14 01:13:50 | [diff] [blame] | 138 | // Used by Metro Chrome to store activation state. |
| 139 | extern const wchar_t kMetroRegistryPath[]; |
| 140 | extern const wchar_t kLaunchModeValue[]; |
[email protected] | 28f576f | 2011-08-26 20:46:55 | [diff] [blame] | 141 | #endif |
| 142 | |
[email protected] | 6de7445 | 2009-02-25 18:04:59 | [diff] [blame] | 143 | } // namespace chrome |
| 144 | |
| 145 | #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |