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 // A handful of resource-like constants related to the Content application. | 5 // A handful of resource-like constants related to the Content application. |
6 | 6 |
7 #ifndef CONTENT_COMMON_CHROME_CONSTANTS_H_ | 7 #ifndef CONTENT_COMMON_CHROME_CONSTANTS_H_ |
8 #define CONTENT_COMMON_CHROME_CONSTANTS_H_ | 8 #define CONTENT_COMMON_CHROME_CONSTANTS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <stddef.h> // For size_t | 11 #include <stddef.h> // For size_t |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
| 15 // The maximum number of session history entries per tab. |
| 16 extern const int kMaxSessionHistoryEntries; |
| 17 |
| 18 // The maximum number of characters of the document's title that we're willing |
| 19 // to accept in the browser process. |
| 20 extern const size_t kMaxTitleChars; |
| 21 |
15 // The maximum number of characters in the URL that we're willing to accept | 22 // The maximum number of characters in the URL that we're willing to accept |
16 // in the browser process. It is set low enough to avoid damage to the browser | 23 // in the browser process. It is set low enough to avoid damage to the browser |
17 // but high enough that a web site can abuse location.hash for a little storage. | 24 // but high enough that a web site can abuse location.hash for a little storage. |
18 // We have different values for "max accepted" and "max displayed" because | 25 // We have different values for "max accepted" and "max displayed" because |
19 // a data: URI may be legitimately massive, but the full URI would kill all | 26 // a data: URI may be legitimately massive, but the full URI would kill all |
20 // known operating systems if you dropped it into a UI control. | 27 // known operating systems if you dropped it into a UI control. |
21 extern const size_t kMaxURLChars; | 28 extern const size_t kMaxURLChars; |
22 extern const size_t kMaxURLDisplayChars; | 29 extern const size_t kMaxURLDisplayChars; |
23 | 30 |
24 } // namespace content | 31 } // namespace content |
25 | 32 |
26 #endif // CONTENT_COMMON_CHROME_CONSTANTS_H_ | 33 #endif // CONTENT_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |