Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: chrome/common/chrome_constants.h

Issue 1127163004: Delete unused code in chrome/common or mark them as platform specific. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A handful of resource-like constants related to the Chrome application. 5 // A handful of resource-like constants related to the Chrome application.
6 6
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ 7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_ 8 #define CHROME_COMMON_CHROME_CONSTANTS_H_
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #if defined(GOOGLE_CHROME_BUILD) 13 #if defined(GOOGLE_CHROME_BUILD)
14 #define PRODUCT_STRING_PATH L"Google\\Chrome" 14 #define PRODUCT_STRING_PATH L"Google\\Chrome"
15 #elif defined(CHROMIUM_BUILD) 15 #elif defined(CHROMIUM_BUILD)
16 #define PRODUCT_STRING_PATH L"Chromium" 16 #define PRODUCT_STRING_PATH L"Chromium"
17 #else 17 #else
18 #error Unknown branding 18 #error Unknown branding
19 #endif 19 #endif
20 #endif // defined(OS_WIN) 20 #endif // defined(OS_WIN)
21 21
22 namespace chrome { 22 namespace chrome {
23 23
24 extern const char kChromeVersion[]; 24 extern const char kChromeVersion[];
25 25
26 #if defined(OS_WIN)
26 extern const char kChromeVersionEnvVar[]; 27 extern const char kChromeVersionEnvVar[];
28 #endif
27 29
28 extern const base::FilePath::CharType kBrowserProcessExecutableName[]; 30 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
29 extern const base::FilePath::CharType kHelperProcessExecutableName[]; 31 extern const base::FilePath::CharType kHelperProcessExecutableName[];
30 extern const base::FilePath::CharType kBrowserProcessExecutablePath[]; 32 extern const base::FilePath::CharType kBrowserProcessExecutablePath[];
31 extern const base::FilePath::CharType kHelperProcessExecutablePath[]; 33 extern const base::FilePath::CharType kHelperProcessExecutablePath[];
32 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[]; 34 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[];
33 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[]; 35 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[];
34 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[]; 36 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[];
35 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[]; 37 extern const base::FilePath::CharType kHelperProcessExecutablePathChromium[];
36 #if defined(OS_MACOSX) 38 #if defined(OS_MACOSX)
37 // NOTE: if you change the value of kFrameworkName, please don't forget to 39 // NOTE: if you change the value of kFrameworkName, please don't forget to
38 // update components/test/run_all_unittests.cc as well. 40 // update components/test/run_all_unittests.cc as well.
39 // TODO(tfarina): Remove the comment above, when you fix components to use plist 41 // TODO(tfarina): Remove the comment above, when you fix components to use plist
40 // on Mac. 42 // on Mac.
41 extern const base::FilePath::CharType kFrameworkName[]; 43 extern const base::FilePath::CharType kFrameworkName[];
42 44
43 // The helper .app bundle name and executable name may have one of these 45 // The helper .app bundle name and executable name may have one of these
44 // suffixes to identify specific features, or it may have no suffix at all. 46 // suffixes to identify specific features, or it may have no suffix at all.
45 // This is a NULL-terminated array of strings. If kHelperFlavorSuffixes 47 // This is a NULL-terminated array of strings. If kHelperFlavorSuffixes
46 // contains "EN", "MF", and NULL, it indicates that if the normal helper is 48 // contains "EN", "MF", and NULL, it indicates that if the normal helper is
47 // named Chromium Helper.app, helper executables could show up at any of 49 // named Chromium Helper.app, helper executables could show up at any of
48 // Chromium Helper.app/Contents/MacOS/Chromium Helper, 50 // Chromium Helper.app/Contents/MacOS/Chromium Helper,
49 // Chromium Helper EN.app/Contents/MacOS/Chromium Helper EN, and 51 // Chromium Helper EN.app/Contents/MacOS/Chromium Helper EN, and
50 // Chromium Helper MF.app/Contents/MacOS/Chromium Helper MF. 52 // Chromium Helper MF.app/Contents/MacOS/Chromium Helper MF.
51 extern const base::FilePath::CharType* const kHelperFlavorSuffixes[]; 53 extern const base::FilePath::CharType* const kHelperFlavorSuffixes[];
52 #endif // OS_MACOSX 54 #endif // OS_MACOSX
53 #if defined(OS_WIN) 55 #if defined(OS_WIN)
56 extern const base::FilePath::CharType kBrowserResourcesDll[];
54 extern const base::FilePath::CharType kMetroDriverDll[]; 57 extern const base::FilePath::CharType kMetroDriverDll[];
55 extern const wchar_t kStatusTrayWindowClass[]; 58 extern const base::FilePath::CharType kStatusTrayWindowClass[];
56 #endif // defined(OS_WIN) 59 #endif // defined(OS_WIN)
57 extern const wchar_t kCrashReportLog[]; 60
58 extern const wchar_t kTestingInterfaceDLL[];
59 extern const char kInitialProfile[]; 61 extern const char kInitialProfile[];
60 extern const char kMultiProfileDirPrefix[]; 62 extern const char kMultiProfileDirPrefix[];
61 extern const base::FilePath::CharType kGuestProfileDir[]; 63 extern const base::FilePath::CharType kGuestProfileDir[];
62 extern const base::FilePath::CharType kSystemProfileDir[]; 64 extern const base::FilePath::CharType kSystemProfileDir[];
63 extern const wchar_t kBrowserResourcesDll[];
64 65
65 // filenames 66 // filenames
66 extern const base::FilePath::CharType kAffiliationDatabaseFileName[]; 67 extern const base::FilePath::CharType kAffiliationDatabaseFileName[];
67 extern const base::FilePath::CharType kCacheDirname[]; 68 extern const base::FilePath::CharType kCacheDirname[];
68 extern const base::FilePath::CharType kChannelIDFilename[]; 69 extern const base::FilePath::CharType kChannelIDFilename[];
69 extern const base::FilePath::CharType kCookieFilename[]; 70 extern const base::FilePath::CharType kCookieFilename[];
70 extern const base::FilePath::CharType kCRLSetFilename[]; 71 extern const base::FilePath::CharType kCRLSetFilename[];
71 extern const base::FilePath::CharType kCustomDictionaryFileName[]; 72 extern const base::FilePath::CharType kCustomDictionaryFileName[];
72 extern const base::FilePath::CharType kExtensionActivityLogFilename[]; 73 extern const base::FilePath::CharType kExtensionActivityLogFilename[];
73 extern const base::FilePath::CharType kExtensionsCookieFilename[]; 74 extern const base::FilePath::CharType kExtensionsCookieFilename[];
74 extern const base::FilePath::CharType kFirstRunSentinel[]; 75 extern const base::FilePath::CharType kFirstRunSentinel[];
75 extern const base::FilePath::CharType kGCMStoreDirname[]; 76 extern const base::FilePath::CharType kGCMStoreDirname[];
76 extern const base::FilePath::CharType kJumpListIconDirname[];
77 extern const base::FilePath::CharType kLocalStateFilename[]; 77 extern const base::FilePath::CharType kLocalStateFilename[];
78 extern const base::FilePath::CharType kLocalStorePoolName[]; 78 extern const base::FilePath::CharType kLocalStorePoolName[];
79 extern const base::FilePath::CharType kLoginDataFileName[]; 79 extern const base::FilePath::CharType kLoginDataFileName[];
80 extern const base::FilePath::CharType kMediaCacheDirname[]; 80 extern const base::FilePath::CharType kMediaCacheDirname[];
81 extern const base::FilePath::CharType kNetworkPersistentStateFilename[]; 81 extern const base::FilePath::CharType kNetworkPersistentStateFilename[];
82 extern const base::FilePath::CharType kNewTabThumbnailsFilename[];
83 extern const base::FilePath::CharType kPreferencesFilename[]; 82 extern const base::FilePath::CharType kPreferencesFilename[];
84 extern const base::FilePath::CharType kProtectedPreferencesFilenameDeprecated[]; 83 extern const base::FilePath::CharType kProtectedPreferencesFilenameDeprecated[];
85 extern const base::FilePath::CharType kReadmeFilename[]; 84 extern const base::FilePath::CharType kReadmeFilename[];
86 extern const base::FilePath::CharType kResetPromptMementoFilename[]; 85 extern const base::FilePath::CharType kResetPromptMementoFilename[];
87 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[]; 86 extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];
88 extern const base::FilePath::CharType kSecurePreferencesFilename[]; 87 extern const base::FilePath::CharType kSecurePreferencesFilename[];
89 extern const base::FilePath::CharType kServiceStateFileName[]; 88 extern const base::FilePath::CharType kServiceStateFileName[];
90 extern const base::FilePath::CharType kShortcutsDatabaseName[]; 89 extern const base::FilePath::CharType kShortcutsDatabaseName[];
91 extern const base::FilePath::CharType kSingletonCookieFilename[]; 90 extern const base::FilePath::CharType kSingletonCookieFilename[];
92 extern const base::FilePath::CharType kSingletonLockFilename[]; 91 extern const base::FilePath::CharType kSingletonLockFilename[];
93 extern const base::FilePath::CharType kSingletonSocketFilename[]; 92 extern const base::FilePath::CharType kSingletonSocketFilename[];
94 extern const base::FilePath::CharType kSupervisedUserSettingsFilename[]; 93 extern const base::FilePath::CharType kSupervisedUserSettingsFilename[];
95 extern const base::FilePath::CharType kSyncCredentialsFilename[];
96 extern const base::FilePath::CharType kThemePackFilename[]; 94 extern const base::FilePath::CharType kThemePackFilename[];
97 extern const base::FilePath::CharType kWebAppDirname[]; 95 extern const base::FilePath::CharType kWebAppDirname[];
98 96
97 #if defined(OS_WIN)
98 extern const base::FilePath::CharType kJumpListIconDirname[];
99 #endif
100
99 // File name of the Pepper Flash plugin on different platforms. 101 // File name of the Pepper Flash plugin on different platforms.
100 extern const base::FilePath::CharType kPepperFlashPluginFilename[]; 102 extern const base::FilePath::CharType kPepperFlashPluginFilename[];
101 103
102 // directory names 104 // directory names
105 #if defined(OS_WIN)
103 extern const wchar_t kUserDataDirname[]; 106 extern const wchar_t kUserDataDirname[];
107 #endif
104 108
105 // Fraction of the total number of processes to be used for hosting 109 // Fraction of the total number of processes to be used for hosting
106 // extensions. If we have more extensions than this percentage, we will start 110 // extensions. If we have more extensions than this percentage, we will start
107 // combining extensions in existing processes. This allows web pages to have 111 // combining extensions in existing processes. This allows web pages to have
108 // enough render processes and not be starved when a lot of extensions are 112 // enough render processes and not be starved when a lot of extensions are
109 // installed. 113 // installed.
110 extern const float kMaxShareOfExtensionProcesses; 114 extern const float kMaxShareOfExtensionProcesses;
111 115
112 #if defined(OS_LINUX) 116 #if defined(OS_LINUX)
113 // The highest and lowest assigned OOM score adjustment 117 // The highest and lowest assigned OOM score adjustment
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 153
150 // Used to identify the application to the system AV function in Windows. 154 // Used to identify the application to the system AV function in Windows.
151 extern const char kApplicationClientIDStringForAVScanning[]; 155 extern const char kApplicationClientIDStringForAVScanning[];
152 156
153 // The largest reasonable length we'd assume for a meta tag attribute. 157 // The largest reasonable length we'd assume for a meta tag attribute.
154 extern const size_t kMaxMetaTagAttributeLength; 158 extern const size_t kMaxMetaTagAttributeLength;
155 159
156 } // namespace chrome 160 } // namespace chrome
157 161
158 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 162 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698