• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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.
4 
5 // A handful of resource-like constants related to the Chrome application.
6 
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_
9 #pragma once
10 
11 #include "base/file_path.h"
12 
13 namespace chrome {
14 
15 extern const char kChromeVersion[];
16 
17 extern const char kChromeVersionEnvVar[];
18 
19 extern const FilePath::CharType kBrowserProcessExecutableName[];
20 extern const FilePath::CharType kHelperProcessExecutableName[];
21 extern const FilePath::CharType kBrowserProcessExecutablePath[];
22 extern const FilePath::CharType kHelperProcessExecutablePath[];
23 #if defined(OS_MACOSX)
24 extern const FilePath::CharType kFrameworkName[];
25 #endif
26 extern const wchar_t kBrowserAppName[];
27 #if defined(OS_WIN)
28 extern const wchar_t kStatusTrayWindowClass[];
29 #endif  // defined(OS_WIN)
30 extern const wchar_t kMessageWindowClass[];
31 extern const wchar_t kCrashReportLog[];
32 extern const wchar_t kTestingInterfaceDLL[];
33 extern const char    kNotSignedInProfile[];
34 extern const char    kStatsFilename[];
35 extern const wchar_t kBrowserResourcesDll[];
36 extern const wchar_t kNaClAppName[];
37 extern const FilePath::CharType kExtensionFileExtension[];
38 extern const FilePath::CharType kExtensionKeyFileExtension[];
39 
40 // filenames
41 extern const FilePath::CharType kArchivedHistoryFilename[];
42 extern const FilePath::CharType kCacheDirname[];
43 extern const FilePath::CharType kMediaCacheDirname[];
44 extern const FilePath::CharType kOffTheRecordMediaCacheDirname[];
45 extern const FilePath::CharType kAppCacheDirname[];
46 extern const FilePath::CharType kThemePackFilename[];
47 extern const FilePath::CharType kCookieFilename[];
48 extern const FilePath::CharType kExtensionsCookieFilename[];
49 extern const FilePath::CharType kIsolatedAppStateDirname[];
50 extern const FilePath::CharType kFaviconsFilename[];
51 extern const FilePath::CharType kHistoryFilename[];
52 extern const FilePath::CharType kLocalStateFilename[];
53 extern const FilePath::CharType kPreferencesFilename[];
54 extern const FilePath::CharType kSafeBrowsingBaseFilename[];
55 extern const FilePath::CharType kSafeBrowsingPhishingModelFilename[];
56 extern const FilePath::CharType kSingletonCookieFilename[];
57 extern const FilePath::CharType kSingletonSocketFilename[];
58 extern const FilePath::CharType kSingletonLockFilename[];
59 extern const FilePath::CharType kThumbnailsFilename[];
60 extern const FilePath::CharType kNewTabThumbnailsFilename[];
61 extern const FilePath::CharType kTopSitesFilename[];
62 extern const wchar_t kUserDataDirname[];
63 extern const FilePath::CharType kUserScriptsDirname[];
64 extern const FilePath::CharType kWebDataFilename[];
65 extern const FilePath::CharType kBookmarksFileName[];
66 extern const FilePath::CharType kHistoryBookmarksFileName[];
67 extern const FilePath::CharType kCustomDictionaryFileName[];
68 extern const FilePath::CharType kLoginDataFileName[];
69 extern const FilePath::CharType kJumpListIconDirname[];
70 extern const FilePath::CharType kWebAppDirname[];
71 extern const FilePath::CharType kServiceStateFileName[];
72 
73 extern const unsigned int kMaxRendererProcessCount;
74 extern const int kStatsMaxThreads;
75 extern const int kStatsMaxCounters;
76 
77 extern const bool kRecordModeEnabled;
78 
79 // Most sequence numbers are used by a renderer when responding to a browser
80 // request for histogram data.  This reserved number is used when a renderer
81 // sends an unprovoked update, such as after a page has been loaded.  Using
82 // this reserved constant avoids any chance of confusion with a response having
83 // a browser-supplied sequence number.
84 extern const int kHistogramSynchronizerReservedSequenceNumber;
85 
86 // The language code used when the language of a page could not be detected.
87 // (Matches what the CLD -Compact Language Detection- library reports.)
88 extern const char* const kUnknownLanguageCode;
89 
90 // If another javascript message box is displayed within
91 // kJavascriptMessageExpectedDelay of a previous javascript message box being
92 // dismissed, display an option to suppress future message boxes from this
93 // contents.
94 extern const int kJavascriptMessageExpectedDelay;
95 
96 }  // namespace chrome
97 
98 #endif  // CHROME_COMMON_CHROME_CONSTANTS_H_
99