| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); | 111 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); |
| 112 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); | 112 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); |
| 113 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); | 113 const FilePath::CharType kWebAppDirname[] = FPL("Web Applications"); |
| 114 | 114 |
| 115 // This number used to be limited to 32 in the past (see b/535234). | 115 // This number used to be limited to 32 in the past (see b/535234). |
| 116 const unsigned int kMaxRendererProcessCount = 42; | 116 const unsigned int kMaxRendererProcessCount = 42; |
| 117 const int kStatsMaxThreads = 32; | 117 const int kStatsMaxThreads = 32; |
| 118 const int kStatsMaxCounters = 300; | 118 const int kStatsMaxCounters = 300; |
| 119 | 119 |
| 120 const size_t kMaxTitleChars = 4 * 1024; | 120 const size_t kMaxTitleChars = 4 * 1024; |
| 121 const size_t kMaxURLChars = 10 * 1024 * 1024; | 121 const size_t kMaxURLChars = 2 * 1024 * 1024; |
| 122 const size_t kMaxURLDisplayChars = 32 * 1024; |
| 122 | 123 |
| 123 // We don't enable record mode in the released product because users could | 124 // We don't enable record mode in the released product because users could |
| 124 // potentially be tricked into running a product in record mode without | 125 // potentially be tricked into running a product in record mode without |
| 125 // knowing it. Enable in debug builds. Playback mode is allowed always, | 126 // knowing it. Enable in debug builds. Playback mode is allowed always, |
| 126 // because it is useful for testing and not hazardous by itself. | 127 // because it is useful for testing and not hazardous by itself. |
| 127 #ifndef NDEBUG | 128 #ifndef NDEBUG |
| 128 const bool kRecordModeEnabled = true; | 129 const bool kRecordModeEnabled = true; |
| 129 #else | 130 #else |
| 130 const bool kRecordModeEnabled = false; | 131 const bool kRecordModeEnabled = false; |
| 131 #endif | 132 #endif |
| 132 | 133 |
| 133 const int kHistogramSynchronizerReservedSequenceNumber = 0; | 134 const int kHistogramSynchronizerReservedSequenceNumber = 0; |
| 134 | 135 |
| 135 const int kMaxSessionHistoryEntries = 50; | 136 const int kMaxSessionHistoryEntries = 50; |
| 136 | 137 |
| 137 const wchar_t kChromiumRendererIdProperty[] = L"ChromiumRendererId"; | 138 const wchar_t kChromiumRendererIdProperty[] = L"ChromiumRendererId"; |
| 138 | 139 |
| 139 } // namespace chrome | 140 } // namespace chrome |
| 140 | 141 |
| 141 #undef FPL | 142 #undef FPL |
| OLD | NEW |