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 "content/common/content_export.h" | |
darin (slow to review)
2011/09/04 15:41:04
nit: include system headers first
Dirk Pranke
2011/09/07 01:46:07
Done.
| |
12 | |
11 #include <stddef.h> // For size_t | 13 #include <stddef.h> // For size_t |
12 | 14 |
13 namespace content { | 15 namespace content { |
14 | 16 |
15 extern const unsigned int kMaxRendererProcessCount; | 17 extern const unsigned int kMaxRendererProcessCount; |
16 | 18 |
17 // The maximum number of session history entries per tab. | 19 // The maximum number of session history entries per tab. |
18 extern const int kMaxSessionHistoryEntries; | 20 extern const int kMaxSessionHistoryEntries; |
19 | 21 |
20 // The maximum number of characters of the document's title that we're willing | 22 // The maximum number of characters of the document's title that we're willing |
21 // to accept in the browser process. | 23 // to accept in the browser process. |
22 extern const size_t kMaxTitleChars; | 24 extern const size_t kMaxTitleChars; |
23 | 25 |
24 // The maximum number of characters in the URL that we're willing to accept | 26 // The maximum number of characters in the URL that we're willing to accept |
25 // in the browser process. It is set low enough to avoid damage to the browser | 27 // in the browser process. It is set low enough to avoid damage to the browser |
26 // but high enough that a web site can abuse location.hash for a little storage. | 28 // but high enough that a web site can abuse location.hash for a little storage. |
27 // We have different values for "max accepted" and "max displayed" because | 29 // We have different values for "max accepted" and "max displayed" because |
28 // a data: URI may be legitimately massive, but the full URI would kill all | 30 // a data: URI may be legitimately massive, but the full URI would kill all |
29 // known operating systems if you dropped it into a UI control. | 31 // known operating systems if you dropped it into a UI control. |
30 extern const size_t kMaxURLChars; | 32 extern const size_t kMaxURLChars; |
31 extern const size_t kMaxURLDisplayChars; | 33 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; |
32 | 34 |
33 // The render view and render process id associated with the default plugin | 35 // The render view and render process id associated with the default plugin |
34 // instance. | 36 // instance. |
35 extern const char kDefaultPluginRenderViewId[]; | 37 CONTENT_EXPORT extern const char kDefaultPluginRenderViewId[]; |
36 extern const char kDefaultPluginRenderProcessId[]; | 38 CONTENT_EXPORT extern const char kDefaultPluginRenderProcessId[]; |
37 | 39 |
38 } // namespace content | 40 } // namespace content |
39 | 41 |
40 #endif // CONTENT_COMMON_CHROME_CONSTANTS_H_ | 42 #endif // CONTENT_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |