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 // 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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 extern const FilePath::CharType kCustomDictionaryFileName[]; | 60 extern const FilePath::CharType kCustomDictionaryFileName[]; |
61 extern const FilePath::CharType kLoginDataFileName[]; | 61 extern const FilePath::CharType kLoginDataFileName[]; |
62 extern const FilePath::CharType kJumpListIconDirname[]; | 62 extern const FilePath::CharType kJumpListIconDirname[]; |
63 extern const FilePath::CharType kWebAppDirname[]; | 63 extern const FilePath::CharType kWebAppDirname[]; |
64 | 64 |
65 extern const unsigned int kMaxRendererProcessCount; | 65 extern const unsigned int kMaxRendererProcessCount; |
66 extern const int kStatsMaxThreads; | 66 extern const int kStatsMaxThreads; |
67 extern const int kStatsMaxCounters; | 67 extern const int kStatsMaxCounters; |
68 | 68 |
69 // The maximum number of characters of the document's title that we're willing | 69 // The maximum number of characters of the document's title that we're willing |
70 // to send to the browser process. | 70 // to accept in the browser process. |
71 extern const size_t kMaxTitleChars; | 71 extern const size_t kMaxTitleChars; |
| 72 // The maximum number of characters in the URL that we're willing to accept |
| 73 // in the browser process. It is set low enough to avoid damage to the browser |
| 74 // but high enough that a web site can abuse location.hash for a little storage. |
| 75 extern const size_t kMaxURLChars; |
72 | 76 |
73 extern const bool kRecordModeEnabled; | 77 extern const bool kRecordModeEnabled; |
74 | 78 |
75 } // namespace chrome | 79 } // namespace chrome |
76 | 80 |
77 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 81 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |