| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing"); | 85 const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing"); |
| 86 // WARNING: SingletonSocket can't contain spaces, because otherwise | 86 // WARNING: SingletonSocket can't contain spaces, because otherwise |
| 87 // chrome_process_util_linux would be broken. | 87 // chrome_process_util_linux would be broken. |
| 88 const FilePath::CharType kSingletonSocketFilename[] = FPL("SingletonSocket"); | 88 const FilePath::CharType kSingletonSocketFilename[] = FPL("SingletonSocket"); |
| 89 const FilePath::CharType kSingletonLockFilename[] = FPL("SingletonLock"); | 89 const FilePath::CharType kSingletonLockFilename[] = FPL("SingletonLock"); |
| 90 const FilePath::CharType kThumbnailsFilename[] = FPL("Thumbnails"); | 90 const FilePath::CharType kThumbnailsFilename[] = FPL("Thumbnails"); |
| 91 const FilePath::CharType kNewTabThumbnailsFilename[] = FPL("Top Thumbnails"); | 91 const FilePath::CharType kNewTabThumbnailsFilename[] = FPL("Top Thumbnails"); |
| 92 const wchar_t kUserDataDirname[] = L"User Data"; | 92 const wchar_t kUserDataDirname[] = L"User Data"; |
| 93 const FilePath::CharType kUserScriptsDirname[] = FPL("User Scripts"); | 93 const FilePath::CharType kUserScriptsDirname[] = FPL("User Scripts"); |
| 94 const FilePath::CharType kWebDataFilename[] = FPL("Web Data"); | 94 const FilePath::CharType kWebDataFilename[] = FPL("Web Data"); |
| 95 const FilePath::CharType kPrivacyBlacklistFileName[] = FPL("Privacy Blacklist"); |
| 95 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks"); | 96 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks"); |
| 96 const FilePath::CharType kHistoryBookmarksFileName[] = | 97 const FilePath::CharType kHistoryBookmarksFileName[] = |
| 97 FPL("Bookmarks From History"); | 98 FPL("Bookmarks From History"); |
| 98 const FilePath::CharType kCustomDictionaryFileName[] = | 99 const FilePath::CharType kCustomDictionaryFileName[] = |
| 99 FPL("Custom Dictionary.txt"); | 100 FPL("Custom Dictionary.txt"); |
| 100 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); | 101 const FilePath::CharType kLoginDataFileName[] = FPL("Login Data"); |
| 101 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); | 102 const FilePath::CharType kJumpListIconDirname[] = FPL("JumpListIcons"); |
| 102 | 103 |
| 103 // This number used to be limited to 32 in the past (see b/535234). | 104 // This number used to be limited to 32 in the past (see b/535234). |
| 104 const unsigned int kMaxRendererProcessCount = 42; | 105 const unsigned int kMaxRendererProcessCount = 42; |
| 105 const int kStatsMaxThreads = 32; | 106 const int kStatsMaxThreads = 32; |
| 106 const int kStatsMaxCounters = 300; | 107 const int kStatsMaxCounters = 300; |
| 107 | 108 |
| 108 const size_t kMaxTitleChars = 4 * 1024; | 109 const size_t kMaxTitleChars = 4 * 1024; |
| 109 | 110 |
| 110 // We don't enable record mode in the released product because users could | 111 // We don't enable record mode in the released product because users could |
| 111 // potentially be tricked into running a product in record mode without | 112 // potentially be tricked into running a product in record mode without |
| 112 // knowing it. Enable in debug builds. Playback mode is allowed always, | 113 // knowing it. Enable in debug builds. Playback mode is allowed always, |
| 113 // because it is useful for testing and not hazardous by itself. | 114 // because it is useful for testing and not hazardous by itself. |
| 114 #ifndef NDEBUG | 115 #ifndef NDEBUG |
| 115 const bool kRecordModeEnabled = true; | 116 const bool kRecordModeEnabled = true; |
| 116 #else | 117 #else |
| 117 const bool kRecordModeEnabled = false; | 118 const bool kRecordModeEnabled = false; |
| 118 #endif | 119 #endif |
| 119 | 120 |
| 120 } // namespace chrome | 121 } // namespace chrome |
| 121 | 122 |
| 122 #undef FPL | 123 #undef FPL |
| OLD | NEW |