| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ | 7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ |
| 8 #define CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ | 8 #define CONTENT_PUBLIC_COMMON_CONTENT_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 #include "base/file_path.h" |
| 13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 18 // The name of the directory under BrowserContext::GetPath where the AppCache is |
| 19 // put. |
| 20 CONTENT_EXPORT extern const FilePath::CharType kAppCacheDirname[]; |
| 21 |
| 17 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount; | 22 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount; |
| 18 | 23 |
| 19 // The maximum number of session history entries per tab. | 24 // The maximum number of session history entries per tab. |
| 20 extern const int kMaxSessionHistoryEntries; | 25 extern const int kMaxSessionHistoryEntries; |
| 21 | 26 |
| 22 // The maximum number of characters of the document's title that we're willing | 27 // The maximum number of characters of the document's title that we're willing |
| 23 // to accept in the browser process. | 28 // to accept in the browser process. |
| 24 extern const size_t kMaxTitleChars; | 29 extern const size_t kMaxTitleChars; |
| 25 | 30 |
| 26 // The maximum number of characters in the URL that we're willing to accept | 31 // The maximum number of characters in the URL that we're willing to accept |
| 27 // in the browser process. It is set low enough to avoid damage to the browser | 32 // in the browser process. It is set low enough to avoid damage to the browser |
| 28 // but high enough that a web site can abuse location.hash for a little storage. | 33 // but high enough that a web site can abuse location.hash for a little storage. |
| 29 // We have different values for "max accepted" and "max displayed" because | 34 // We have different values for "max accepted" and "max displayed" because |
| 30 // a data: URI may be legitimately massive, but the full URI would kill all | 35 // a data: URI may be legitimately massive, but the full URI would kill all |
| 31 // known operating systems if you dropped it into a UI control. | 36 // known operating systems if you dropped it into a UI control. |
| 32 CONTENT_EXPORT extern const size_t kMaxURLChars; | 37 CONTENT_EXPORT extern const size_t kMaxURLChars; |
| 33 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; | 38 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; |
| 34 | 39 |
| 35 extern const char kStatsFilename[]; | 40 extern const char kStatsFilename[]; |
| 36 extern const int kStatsMaxThreads; | 41 extern const int kStatsMaxThreads; |
| 37 extern const int kStatsMaxCounters; | 42 extern const int kStatsMaxCounters; |
| 38 | 43 |
| 39 } // namespace content | 44 } // namespace content |
| 40 | 45 |
| 41 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ | 46 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ |
| OLD | NEW |