OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const char* const kHelperFlavorSuffixes[] = { | 97 const char* const kHelperFlavorSuffixes[] = { |
98 FPL("EH"), // Executable heap | 98 FPL("EH"), // Executable heap |
99 FPL("NP"), // No PIE | 99 FPL("NP"), // No PIE |
100 NULL | 100 NULL |
101 }; | 101 }; |
102 #endif // OS_MACOSX | 102 #endif // OS_MACOSX |
103 | 103 |
104 const wchar_t kNaClAppName[] = L"nacl64"; | 104 const wchar_t kNaClAppName[] = L"nacl64"; |
105 #if defined(GOOGLE_CHROME_BUILD) | 105 #if defined(GOOGLE_CHROME_BUILD) |
106 const wchar_t kBrowserAppName[] = L"Chrome"; | 106 const wchar_t kBrowserAppName[] = L"Chrome"; |
107 const char kStatsFilename[] = "ChromeStats2"; | |
108 #else | 107 #else |
109 const wchar_t kBrowserAppName[] = L"Chromium"; | 108 const wchar_t kBrowserAppName[] = L"Chromium"; |
110 const char kStatsFilename[] = "ChromiumStats2"; | |
111 #endif | 109 #endif |
112 | 110 |
113 #if defined(OS_WIN) | 111 #if defined(OS_WIN) |
114 const wchar_t kStatusTrayWindowClass[] = L"Chrome_StatusTrayWindow"; | 112 const wchar_t kStatusTrayWindowClass[] = L"Chrome_StatusTrayWindow"; |
115 #endif // defined(OS_WIN) | 113 #endif // defined(OS_WIN) |
116 | 114 |
117 const wchar_t kMessageWindowClass[] = L"Chrome_MessageWindow"; | 115 const wchar_t kMessageWindowClass[] = L"Chrome_MessageWindow"; |
118 const wchar_t kCrashReportLog[] = L"Reported Crashes.txt"; | 116 const wchar_t kCrashReportLog[] = L"Reported Crashes.txt"; |
119 const wchar_t kTestingInterfaceDLL[] = L"testing_interface.dll"; | 117 const wchar_t kTestingInterfaceDLL[] = L"testing_interface.dll"; |
120 const char kInitialProfile[] = "Default"; | 118 const char kInitialProfile[] = "Default"; |
(...skipping 30 matching lines...) Expand all Loading... |
151 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks"); | 149 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks"); |
152 const FilePath::CharType kHistoryBookmarksFileName[] = | 150 const FilePath::CharType kHistoryBookmarksFileName[] = |
153 FPL("Bookmarks From History"); | 151 FPL("Bookmarks From History"); |
154 const FilePath::CharType kCustomDictionaryFileName[] = | 152 const FilePath::CharType kCustomDictionaryFileName[] = |
155 FPL("Custom Dictionary.txt"); | 153 FPL("Custom Dictionary.txt"); |
156 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); | 154 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); |
157 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); | 155 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); |
158 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); | 156 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); |
159 const FilePath::CharType kServiceStateFileName[] = FPL("Service State"); | 157 const FilePath::CharType kServiceStateFileName[] = FPL("Service State"); |
160 | 158 |
161 const int kStatsMaxThreads = 32; | |
162 const int kStatsMaxCounters = 3000; | |
163 | |
164 // We don't enable record mode in the released product because users could | 159 // We don't enable record mode in the released product because users could |
165 // potentially be tricked into running a product in record mode without | 160 // potentially be tricked into running a product in record mode without |
166 // knowing it. Enable in debug builds. Playback mode is allowed always, | 161 // knowing it. Enable in debug builds. Playback mode is allowed always, |
167 // because it is useful for testing and not hazardous by itself. | 162 // because it is useful for testing and not hazardous by itself. |
168 #ifndef NDEBUG | 163 #ifndef NDEBUG |
169 const bool kRecordModeEnabled = true; | 164 const bool kRecordModeEnabled = true; |
170 #else | 165 #else |
171 const bool kRecordModeEnabled = false; | 166 const bool kRecordModeEnabled = false; |
172 #endif | 167 #endif |
173 | 168 |
(...skipping 15 matching lines...) Expand all Loading... |
189 #endif | 184 #endif |
190 | 185 |
191 #if defined(OS_WIN) | 186 #if defined(OS_WIN) |
192 // This is used by the PreRead experiment. | 187 // This is used by the PreRead experiment. |
193 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; | 188 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; |
194 #endif | 189 #endif |
195 | 190 |
196 } // namespace chrome | 191 } // namespace chrome |
197 | 192 |
198 #undef FPL | 193 #undef FPL |
OLD | NEW |