| 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 | 9 |
| 10 #include <stddef.h> // For size_t | 10 #include <stddef.h> // For size_t |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount; | 35 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount; |
| 36 | 36 |
| 37 // The maximum number of session history entries per tab. | 37 // The maximum number of session history entries per tab. |
| 38 extern const int kMaxSessionHistoryEntries; | 38 extern const int kMaxSessionHistoryEntries; |
| 39 | 39 |
| 40 // The maximum number of characters of the document's title that we're willing | 40 // The maximum number of characters of the document's title that we're willing |
| 41 // to accept in the browser process. | 41 // to accept in the browser process. |
| 42 extern const size_t kMaxTitleChars; | 42 extern const size_t kMaxTitleChars; |
| 43 | 43 |
| 44 // The maximum number of characters in the URL that we're willing to accept | |
| 45 // in the browser process. It is set low enough to avoid damage to the browser | |
| 46 // but high enough that a web site can abuse location.hash for a little storage. | |
| 47 // We have different values for "max accepted" and "max displayed" because | |
| 48 // a data: URI may be legitimately massive, but the full URI would kill all | |
| 49 // known operating systems if you dropped it into a UI control. | |
| 50 CONTENT_EXPORT extern const size_t kMaxURLChars; | |
| 51 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; | 44 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; |
| 52 | 45 |
| 53 extern const char kStatsFilename[]; | 46 extern const char kStatsFilename[]; |
| 54 extern const int kStatsMaxThreads; | 47 extern const int kStatsMaxThreads; |
| 55 extern const int kStatsMaxCounters; | 48 extern const int kStatsMaxCounters; |
| 56 | 49 |
| 57 // Most sequence numbers are used by a renderer when responding to a browser | 50 // Most sequence numbers are used by a renderer when responding to a browser |
| 58 // request for histogram data. This reserved number is used when a renderer | 51 // request for histogram data. This reserved number is used when a renderer |
| 59 // sends an unprovoked update, such as after a page has been loaded. Using | 52 // sends an unprovoked update, such as after a page has been loaded. Using |
| 60 // this reserved constant avoids any chance of confusion with a response having | 53 // this reserved constant avoids any chance of confusion with a response having |
| 61 // a browser-supplied sequence number. | 54 // a browser-supplied sequence number. |
| 62 CONTENT_EXPORT extern const int kHistogramSynchronizerReservedSequenceNumber; | 55 CONTENT_EXPORT extern const int kHistogramSynchronizerReservedSequenceNumber; |
| 63 | 56 |
| 64 // Shared constants for the low latency flash audio field trial. | 57 // Shared constants for the low latency flash audio field trial. |
| 65 CONTENT_EXPORT extern const char kLowLatencyFlashAudioFieldTrialName[]; | 58 CONTENT_EXPORT extern const char kLowLatencyFlashAudioFieldTrialName[]; |
| 66 CONTENT_EXPORT extern const char kLowLatencyFlashAudioFieldTrialEnabledName[]; | 59 CONTENT_EXPORT extern const char kLowLatencyFlashAudioFieldTrialEnabledName[]; |
| 67 | 60 |
| 68 } // namespace content | 61 } // namespace content |
| 69 | 62 |
| 70 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ | 63 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ |
| OLD | NEW |