blob: 40feb7c0dca4225788d78aa2134875ddf9bc647b [file] [log] [blame]
[email protected]b50368b2012-02-18 00:02:131// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
5// A handful of resource-like constants related to the Chrome application.
6
[email protected]6de74452009-02-25 18:04:597#ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8#define CHROME_COMMON_CHROME_CONSTANTS_H_
initial.commit09911bf2008-07-26 23:55:299
[email protected]57999812013-02-24 05:40:5210#include "base/files/file_path.h"
[email protected]c870c762009-01-28 05:47:1511
initial.commit09911bf2008-07-26 23:55:2912namespace chrome {
13
[email protected]1405220a2009-10-14 22:01:2614extern const char kChromeVersion[];
15
[email protected]03d21b82010-12-07 19:37:2216extern const char kChromeVersionEnvVar[];
17
[email protected]a7329162013-02-07 19:21:4818extern const base::FilePath::CharType kBrowserProcessExecutableName[];
19extern const base::FilePath::CharType kHelperProcessExecutableName[];
20extern const base::FilePath::CharType kBrowserProcessExecutablePath[];
21extern const base::FilePath::CharType kHelperProcessExecutablePath[];
22extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[];
23extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[];
24extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[];
25extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[];
[email protected]6a271dba2009-10-08 20:03:5426#if defined(OS_MACOSX)
[email protected]a7329162013-02-07 19:21:4827extern const base::FilePath::CharType kFrameworkName[];
[email protected]8c40f322011-08-24 03:33:3628
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]a7329162013-02-07 19:21:4837extern const base::FilePath::CharType* const kHelperFlavorSuffixes[];
[email protected]8c40f322011-08-24 03:33:3638#endif // OS_MACOSX
[email protected]86b54012009-11-19 09:18:5039#if defined(OS_WIN)
[email protected]a7329162013-02-07 19:21:4840extern const base::FilePath::CharType kMetroDriverDll[];
[email protected]a24642a2010-03-24 21:29:0541extern const wchar_t kStatusTrayWindowClass[];
[email protected]86b54012009-11-19 09:18:5042#endif // defined(OS_WIN)
initial.commit09911bf2008-07-26 23:55:2943extern const wchar_t kMessageWindowClass[];
initial.commit09911bf2008-07-26 23:55:2944extern const wchar_t kCrashReportLog[];
45extern const wchar_t kTestingInterfaceDLL[];
[email protected]d778d6e2011-08-12 09:47:0546extern const char kInitialProfile[];
[email protected]29d70252011-04-28 02:16:5847extern const char kMultiProfileDirPrefix[];
initial.commit09911bf2008-07-26 23:55:2948extern const wchar_t kBrowserResourcesDll[];
[email protected]103607e2010-02-01 18:57:0949extern const wchar_t kNaClAppName[];
[email protected]a7329162013-02-07 19:21:4850extern const base::FilePath::CharType kExtensionFileExtension[];
51extern const base::FilePath::CharType kExtensionKeyFileExtension[];
initial.commit09911bf2008-07-26 23:55:2952
53// filenames
[email protected]d41e6572012-05-04 20:49:4254#if defined(OS_ANDROID)
[email protected]a7329162013-02-07 19:21:4855extern const base::FilePath::CharType kAndroidCacheFilename[];
[email protected]d41e6572012-05-04 20:49:4256#endif
[email protected]a7329162013-02-07 19:21:4857extern const base::FilePath::CharType kArchivedHistoryFilename[];
58extern const base::FilePath::CharType kBookmarksFileName[];
59extern const base::FilePath::CharType kCacheDirname[];
60extern const base::FilePath::CharType kCookieFilename[];
61extern const base::FilePath::CharType kCRLSetFilename[];
62extern const base::FilePath::CharType kCustomDictionaryFileName[];
63extern const base::FilePath::CharType kExtensionActivityLogFilename[];
64extern const base::FilePath::CharType kExtensionsCookieFilename[];
65extern const base::FilePath::CharType kFaviconsFilename[];
66extern const base::FilePath::CharType kFirstRunSentinel[];
67extern const base::FilePath::CharType kHistoryFilename[];
68extern const base::FilePath::CharType kJumpListIconDirname[];
69extern const base::FilePath::CharType kLocalStateFilename[];
70extern const base::FilePath::CharType kLoginDataFileName[];
71extern const base::FilePath::CharType kManagedModePolicyFilename[];
72extern const base::FilePath::CharType kMediaCacheDirname[];
73extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
74extern const base::FilePath::CharType kOBCertFilename[];
75extern const base::FilePath::CharType kPreferencesFilename[];
76extern const base::FilePath::CharType kReadmeFilename[];
77extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
78extern const base::FilePath::CharType kServiceStateFileName[];
79extern const base::FilePath::CharType kShortcutsDatabaseName[];
80extern const base::FilePath::CharType kSingletonCookieFilename[];
81extern const base::FilePath::CharType kSingletonLockFilename[];
82extern const base::FilePath::CharType kSingletonSocketFilename[];
83extern const base::FilePath::CharType kSyncCredentialsFilename[];
84extern const base::FilePath::CharType kThemePackFilename[];
85extern const base::FilePath::CharType kThumbnailsFilename[];
86extern const base::FilePath::CharType kTopSitesFilename[];
87extern const base::FilePath::CharType kWebAppDirname[];
88extern const base::FilePath::CharType kWebDataFilename[];
[email protected]931be372012-06-27 00:39:0689
90// File name of the Pepper Flash plugin on different platforms.
[email protected]a7329162013-02-07 19:21:4891extern const base::FilePath::CharType kPepperFlashPluginFilename[];
[email protected]931be372012-06-27 00:39:0692
93// directory names
94extern const wchar_t kUserDataDirname[];
[email protected]65a9cc12012-03-20 15:10:1895
[email protected]c579a172012-03-10 01:12:1796#if defined(OS_CHROMEOS)
[email protected]a7329162013-02-07 19:21:4897extern const base::FilePath::CharType kDriveCacheDirname[];
[email protected]c579a172012-03-10 01:12:1798#endif // defined(OS_CHROMEOS)
initial.commit09911bf2008-07-26 23:55:2999
initial.commit09911bf2008-07-26 23:55:29100extern const bool kRecordModeEnabled;
initial.commit09911bf2008-07-26 23:55:29101
[email protected]655f97c32010-07-22 21:24:17102// The language code used when the language of a page could not be detected.
103// (Matches what the CLD -Compact Language Detection- library reports.)
104extern const char* const kUnknownLanguageCode;
105
[email protected]1698f612011-03-11 11:28:15106// 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.
110extern const int kJavascriptMessageExpectedDelay;
111
[email protected]42054a252011-05-17 18:02:13112// Are touch icons enabled? False by default.
113extern const bool kEnableTouchIcon;
114
[email protected]76411f412012-02-22 18:56:06115// 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.
120extern const float kMaxShareOfExtensionProcesses;
121
[email protected]03eb9d22011-08-23 17:58:21122#if defined(OS_LINUX)
123// The highest and lowest assigned OOM score adjustment
124// (oom_score_adj) used by the OomPriority Manager.
125extern const int kLowestRendererOomScore;
126extern const int kHighestRendererOomScore;
127#endif
128
[email protected]28f576f2011-08-26 20:46:55129#if defined(OS_WIN)
130// This is used by the PreRead experiment.
131extern const char kPreReadEnvironmentVariable[];
[email protected]025c30512012-04-19 00:07:36132// Used by Metro Chrome to create the profile under a custom subdirectory.
133extern const wchar_t kMetroChromeUserDataSubDir[];
[email protected]1da92ab2012-04-30 21:23:40134// Used by Metro Chrome to initiate navigation and search requests.
135extern const wchar_t kMetroNavigationAndSearchMessage[];
[email protected]ec6ad4e2012-05-02 21:22:12136// Used by Metro Chrome to get information about the current tab.
137extern const wchar_t kMetroGetCurrentTabInfoMessage[];
[email protected]f2802ccb2012-09-14 01:13:50138// Used by Metro Chrome to store activation state.
139extern const wchar_t kMetroRegistryPath[];
140extern const wchar_t kLaunchModeValue[];
[email protected]28f576f2011-08-26 20:46:55141#endif
142
[email protected]6de74452009-02-25 18:04:59143} // namespace chrome
144
145#endif // CHROME_COMMON_CHROME_CONSTANTS_H_