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 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 extern const FilePath::CharType kCustomDictionaryFileName[]; | 67 extern const FilePath::CharType kCustomDictionaryFileName[]; |
68 extern const FilePath::CharType kLoginDataFileName[]; | 68 extern const FilePath::CharType kLoginDataFileName[]; |
69 extern const FilePath::CharType kJumpListIconDirname[]; | 69 extern const FilePath::CharType kJumpListIconDirname[]; |
70 extern const FilePath::CharType kWebAppDirname[]; | 70 extern const FilePath::CharType kWebAppDirname[]; |
71 extern const FilePath::CharType kServiceStateFileName[]; | 71 extern const FilePath::CharType kServiceStateFileName[]; |
72 | 72 |
73 extern const unsigned int kMaxRendererProcessCount; | 73 extern const unsigned int kMaxRendererProcessCount; |
74 extern const int kStatsMaxThreads; | 74 extern const int kStatsMaxThreads; |
75 extern const int kStatsMaxCounters; | 75 extern const int kStatsMaxCounters; |
76 | 76 |
77 // The maximum number of characters of the document's title that we're willing | |
78 // to accept in the browser process. | |
79 extern const size_t kMaxTitleChars; | |
80 | |
81 extern const bool kRecordModeEnabled; | 77 extern const bool kRecordModeEnabled; |
82 | 78 |
83 // Most sequence numbers are used by a renderer when responding to a browser | 79 // Most sequence numbers are used by a renderer when responding to a browser |
84 // request for histogram data. This reserved number is used when a renderer | 80 // request for histogram data. This reserved number is used when a renderer |
85 // sends an unprovoked update, such as after a page has been loaded. Using | 81 // sends an unprovoked update, such as after a page has been loaded. Using |
86 // this reserved constant avoids any chance of confusion with a response having | 82 // this reserved constant avoids any chance of confusion with a response having |
87 // a browser-supplied sequence number. | 83 // a browser-supplied sequence number. |
88 extern const int kHistogramSynchronizerReservedSequenceNumber; | 84 extern const int kHistogramSynchronizerReservedSequenceNumber; |
89 | 85 |
90 // The maximum number of session history entries per tab. | |
91 extern const int kMaxSessionHistoryEntries; | |
92 | |
93 // The language code used when the language of a page could not be detected. | 86 // The language code used when the language of a page could not be detected. |
94 // (Matches what the CLD -Compact Language Detection- library reports.) | 87 // (Matches what the CLD -Compact Language Detection- library reports.) |
95 extern const char* const kUnknownLanguageCode; | 88 extern const char* const kUnknownLanguageCode; |
96 | 89 |
97 // If another javascript message box is displayed within | 90 // If another javascript message box is displayed within |
98 // kJavascriptMessageExpectedDelay of a previous javascript message box being | 91 // kJavascriptMessageExpectedDelay of a previous javascript message box being |
99 // dismissed, display an option to suppress future message boxes from this | 92 // dismissed, display an option to suppress future message boxes from this |
100 // contents. | 93 // contents. |
101 extern const int kJavascriptMessageExpectedDelay; | 94 extern const int kJavascriptMessageExpectedDelay; |
102 | 95 |
103 } // namespace chrome | 96 } // namespace chrome |
104 | 97 |
105 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 98 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |