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

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

Issue 11031008: Upstreaming chrome/common/chrome_* diff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing Nishel's nits Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « base/test/test_support_android.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/common/chrome_constants.h" 5 #include "chrome/common/chrome_constants.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 8
9 #define FPL FILE_PATH_LITERAL 9 #define FPL FILE_PATH_LITERAL
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 FPL("chrome.exe"); 58 FPL("chrome.exe");
59 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe"); 59 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe");
60 #elif defined(OS_MACOSX) 60 #elif defined(OS_MACOSX)
61 const FilePath::CharType kBrowserProcessExecutableNameChromium[] = 61 const FilePath::CharType kBrowserProcessExecutableNameChromium[] =
62 FPL(CHROMIUM_PRODUCT_STRING); 62 FPL(CHROMIUM_PRODUCT_STRING);
63 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING); 63 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING);
64 const FilePath::CharType kHelperProcessExecutableNameChromium[] = 64 const FilePath::CharType kHelperProcessExecutableNameChromium[] =
65 FPL(CHROMIUM_PRODUCT_STRING " Helper"); 65 FPL(CHROMIUM_PRODUCT_STRING " Helper");
66 const FilePath::CharType kHelperProcessExecutableName[] = 66 const FilePath::CharType kHelperProcessExecutableName[] =
67 FPL(PRODUCT_STRING " Helper"); 67 FPL(PRODUCT_STRING " Helper");
68 #elif defined(OS_ANDROID)
69 // NOTE: Keep it synced with the process names defined in AndroidManifest.xml.
70 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
71 const FilePath::CharType kBrowserProcessExecutableNameChromium[] =
72 FPL("");
73 const FilePath::CharType kHelperProcessExecutableName[] =
74 FPL("sandboxed_process");
75 const FilePath::CharType kHelperProcessExecutableNameChromium[] = FPL("");
68 #elif defined(OS_POSIX) 76 #elif defined(OS_POSIX)
69 const FilePath::CharType kBrowserProcessExecutableNameChromium[] = 77 const FilePath::CharType kBrowserProcessExecutableNameChromium[] =
70 FPL("chrome"); 78 FPL("chrome");
71 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome"); 79 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
72 // Helper processes end up with a name of "exe" due to execing via 80 // Helper processes end up with a name of "exe" due to execing via
73 // /proc/self/exe. See bug 22703. 81 // /proc/self/exe. See bug 22703.
74 const FilePath::CharType kHelperProcessExecutableNameChromium[] = FPL("exe"); 82 const FilePath::CharType kHelperProcessExecutableNameChromium[] = FPL("exe");
75 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe"); 83 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe");
76 #endif // OS_* 84 #endif // OS_*
77 85
78 #if defined(OS_WIN) 86 #if defined(OS_WIN)
79 const FilePath::CharType kBrowserProcessExecutablePathChromium[] = 87 const FilePath::CharType kBrowserProcessExecutablePathChromium[] =
80 FPL("chrome.exe"); 88 FPL("chrome.exe");
81 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe"); 89 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe");
82 const FilePath::CharType kHelperProcessExecutablePathChromium[] = 90 const FilePath::CharType kHelperProcessExecutablePathChromium[] =
83 FPL("chrome.exe"); 91 FPL("chrome.exe");
84 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); 92 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe");
85 #elif defined(OS_MACOSX) 93 #elif defined(OS_MACOSX)
86 const FilePath::CharType kBrowserProcessExecutablePathChromium[] = 94 const FilePath::CharType kBrowserProcessExecutablePathChromium[] =
87 FPL(CHROMIUM_PRODUCT_STRING ".app/Contents/MacOS/" CHROMIUM_PRODUCT_STRING); 95 FPL(CHROMIUM_PRODUCT_STRING ".app/Contents/MacOS/" CHROMIUM_PRODUCT_STRING);
88 const FilePath::CharType kBrowserProcessExecutablePath[] = 96 const FilePath::CharType kBrowserProcessExecutablePath[] =
89 FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING); 97 FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING);
90 const FilePath::CharType kHelperProcessExecutablePathChromium[] = 98 const FilePath::CharType kHelperProcessExecutablePathChromium[] =
91 FPL(CHROMIUM_PRODUCT_STRING " Helper.app/Contents/MacOS/" 99 FPL(CHROMIUM_PRODUCT_STRING " Helper.app/Contents/MacOS/"
92 CHROMIUM_PRODUCT_STRING " Helper"); 100 CHROMIUM_PRODUCT_STRING " Helper");
93 const FilePath::CharType kHelperProcessExecutablePath[] = 101 const FilePath::CharType kHelperProcessExecutablePath[] =
94 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper"); 102 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper");
103 #elif defined(OS_ANDROID)
104 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
105 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
106 const FilePath::CharType kBrowserProcessExecutablePathChromium[] =
107 FPL("chrome");
108 const FilePath::CharType kHelperProcessExecutablePathChromium[] = FPL("chrome");
95 #elif defined(OS_POSIX) 109 #elif defined(OS_POSIX)
96 const FilePath::CharType kBrowserProcessExecutablePathChromium[] = 110 const FilePath::CharType kBrowserProcessExecutablePathChromium[] =
97 FPL("chrome"); 111 FPL("chrome");
98 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome"); 112 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
99 const FilePath::CharType kHelperProcessExecutablePathChromium[] = FPL("chrome"); 113 const FilePath::CharType kHelperProcessExecutablePathChromium[] = FPL("chrome");
100 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome"); 114 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
101 #endif // OS_* 115 #endif // OS_*
102 116
103 #if defined(OS_MACOSX) 117 #if defined(OS_MACOSX)
104 const FilePath::CharType kFrameworkName[] = 118 const FilePath::CharType kFrameworkName[] =
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 #else 210 #else
197 // const bool kRecordModeEnabled = false; 211 // const bool kRecordModeEnabled = false;
198 #endif 212 #endif
199 213
200 const bool kRecordModeEnabled = true; 214 const bool kRecordModeEnabled = true;
201 215
202 const char* const kUnknownLanguageCode = "und"; 216 const char* const kUnknownLanguageCode = "und";
203 217
204 const int kJavascriptMessageExpectedDelay = 1000; 218 const int kJavascriptMessageExpectedDelay = 1000;
205 219
220 #if defined(OS_ANDROID)
221 const bool kEnableTouchIcon = true;
222 #else
206 const bool kEnableTouchIcon = false; 223 const bool kEnableTouchIcon = false;
224 #endif
207 225
208 const float kMaxShareOfExtensionProcesses = 0.30f; 226 const float kMaxShareOfExtensionProcesses = 0.30f;
209 227
210 #if defined(OS_LINUX) 228 #if defined(OS_LINUX)
211 extern const int kLowestRendererOomScore = 300; 229 extern const int kLowestRendererOomScore = 300;
212 extern const int kHighestRendererOomScore = 1000; 230 extern const int kHighestRendererOomScore = 1000;
213 #endif 231 #endif
214 232
215 #if defined(OS_WIN) 233 #if defined(OS_WIN)
216 // This is used by the PreRead experiment. 234 // This is used by the PreRead experiment.
217 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; 235 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT";
218 // This is used by chrome in Windows 8 metro mode. 236 // This is used by chrome in Windows 8 metro mode.
219 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro"; 237 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro";
220 const wchar_t kMetroNavigationAndSearchMessage[] = 238 const wchar_t kMetroNavigationAndSearchMessage[] =
221 L"CHROME_METRO_NAV_SEARCH_REQUEST"; 239 L"CHROME_METRO_NAV_SEARCH_REQUEST";
222 const wchar_t kMetroGetCurrentTabInfoMessage[] = 240 const wchar_t kMetroGetCurrentTabInfoMessage[] =
223 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; 241 L"CHROME_METRO_GET_CURRENT_TAB_INFO";
224 const wchar_t kMetroRegistryPath[] = 242 const wchar_t kMetroRegistryPath[] =
225 L"Software\\" PRODUCT_STRING_PATH L"\\Metro"; 243 L"Software\\" PRODUCT_STRING_PATH L"\\Metro";
226 const wchar_t kLaunchModeValue[] = L"launch_mode"; 244 const wchar_t kLaunchModeValue[] = L"launch_mode";
227 #endif 245 #endif
228 246
229 } // namespace chrome 247 } // namespace chrome
230 248
231 #undef FPL 249 #undef FPL
OLDNEW
« no previous file with comments | « base/test/test_support_android.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698