Kiosk app OEM manifest support in OOBE.
[chromium-blink-merge.git] / chrome / common / chrome_constants.h
blob102cc9ad922add229f87a0c91f695efe0087c0a4
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 kMessageWindowClass[];
44 extern const wchar_t kCrashReportLog[];
45 extern const wchar_t kTestingInterfaceDLL[];
46 extern const char kInitialProfile[];
47 extern const char kMultiProfileDirPrefix[];
48 extern const wchar_t kBrowserResourcesDll[];
49 extern const wchar_t kNaClAppName[];
50 extern const base::FilePath::CharType kExtensionFileExtension[];
51 extern const base::FilePath::CharType kExtensionKeyFileExtension[];
53 // filenames
54 #if defined(OS_ANDROID)
55 extern const base::FilePath::CharType kAndroidCacheFilename[];
56 #endif
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 kLocalStorePoolName[];
71 extern const base::FilePath::CharType kLoginDataFileName[];
72 extern const base::FilePath::CharType kManagedModePolicyFilename[];
73 extern const base::FilePath::CharType kMediaCacheDirname[];
74 extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
75 extern const base::FilePath::CharType kOBCertFilename[];
76 extern const base::FilePath::CharType kPreferencesFilename[];
77 extern const base::FilePath::CharType kReadmeFilename[];
78 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
79 extern const base::FilePath::CharType kServiceStateFileName[];
80 extern const base::FilePath::CharType kShortcutsDatabaseName[];
81 extern const base::FilePath::CharType kSingletonCookieFilename[];
82 extern const base::FilePath::CharType kSingletonLockFilename[];
83 extern const base::FilePath::CharType kSingletonSocketFilename[];
84 extern const base::FilePath::CharType kSyncCredentialsFilename[];
85 extern const base::FilePath::CharType kThemePackFilename[];
86 extern const base::FilePath::CharType kThumbnailsFilename[];
87 extern const base::FilePath::CharType kTopSitesFilename[];
88 extern const base::FilePath::CharType kWebAppDirname[];
90 // File name of the Pepper Flash plugin on different platforms.
91 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
93 // directory names
94 extern const wchar_t kUserDataDirname[];
96 #if defined(OS_CHROMEOS)
97 extern const base::FilePath::CharType kDriveCacheDirname[];
98 extern const char kOemDeviceRequisitionKey[];
99 extern const char kOemIsEnterpriseManagedKey[];
100 extern const char kOemCanExitEnterpriseEnrollmentKey[];
101 #endif // defined(OS_CHROMEOS)
103 extern const bool kRecordModeEnabled;
105 // The language code used when the language of a page could not be detected.
106 // (Matches what the CLD -Compact Language Detection- library reports.)
107 extern const char* const kUnknownLanguageCode;
109 // If another javascript message box is displayed within
110 // kJavascriptMessageExpectedDelay of a previous javascript message box being
111 // dismissed, display an option to suppress future message boxes from this
112 // contents.
113 extern const int kJavascriptMessageExpectedDelay;
115 // Are touch icons enabled? False by default.
116 extern const bool kEnableTouchIcon;
118 // Fraction of the total number of processes to be used for hosting
119 // extensions. If we have more extensions than this percentage, we will start
120 // combining extensions in existing processes. This allows web pages to have
121 // enough render processes and not be starved when a lot of extensions are
122 // installed.
123 extern const float kMaxShareOfExtensionProcesses;
125 #if defined(OS_LINUX)
126 // The highest and lowest assigned OOM score adjustment
127 // (oom_score_adj) used by the OomPriority Manager.
128 extern const int kLowestRendererOomScore;
129 extern const int kHighestRendererOomScore;
130 #endif
132 #if defined(OS_WIN)
133 // This is used by the PreRead experiment.
134 extern const char kPreReadEnvironmentVariable[];
135 // Used by Metro Chrome to create the profile under a custom subdirectory.
136 extern const wchar_t kMetroChromeUserDataSubDir[];
137 // Used by Metro Chrome to initiate navigation and search requests.
138 extern const wchar_t kMetroNavigationAndSearchMessage[];
139 // Used by Metro Chrome to get information about the current tab.
140 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
141 // Used by Metro Chrome to store activation state.
142 extern const wchar_t kMetroRegistryPath[];
143 extern const wchar_t kLaunchModeValue[];
144 #endif
146 } // namespace chrome
148 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_