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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 extern const unsigned int kMaxRendererProcessCount; | 67 extern const unsigned int kMaxRendererProcessCount; |
68 extern const int kStatsMaxThreads; | 68 extern const int kStatsMaxThreads; |
69 extern const int kStatsMaxCounters; | 69 extern const int kStatsMaxCounters; |
70 | 70 |
71 // The maximum number of characters of the document's title that we're willing | 71 // The maximum number of characters of the document's title that we're willing |
72 // to accept in the browser process. | 72 // to accept in the browser process. |
73 extern const size_t kMaxTitleChars; | 73 extern const size_t kMaxTitleChars; |
74 // The maximum number of characters in the URL that we're willing to accept | 74 // The maximum number of characters in the URL that we're willing to accept |
75 // in the browser process. It is set low enough to avoid damage to the browser | 75 // in the browser process. It is set low enough to avoid damage to the browser |
76 // but high enough that a web site can abuse location.hash for a little storage. | 76 // but high enough that a web site can abuse location.hash for a little storage. |
| 77 // We have different values for "max accepted" and "max displayed" because |
| 78 // a data: URI may be legitimately massive, but the full URI would kill all |
| 79 // known operating systems if you dropped it into a UI control. |
77 extern const size_t kMaxURLChars; | 80 extern const size_t kMaxURLChars; |
| 81 extern const size_t kMaxURLDisplayChars; |
78 | 82 |
79 extern const bool kRecordModeEnabled; | 83 extern const bool kRecordModeEnabled; |
80 | 84 |
81 extern const int kHistogramSynchronizerReservedSequenceNumber; | 85 extern const int kHistogramSynchronizerReservedSequenceNumber; |
82 | 86 |
83 // The maximum number of session history entries per tab. | 87 // The maximum number of session history entries per tab. |
84 extern const int kMaxSessionHistoryEntries; | 88 extern const int kMaxSessionHistoryEntries; |
85 | 89 |
86 extern const wchar_t kChromiumRendererIdProperty[]; | 90 extern const wchar_t kChromiumRendererIdProperty[]; |
87 | 91 |
88 } // namespace chrome | 92 } // namespace chrome |
89 | 93 |
90 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 94 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |