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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 | 86 |
87 extern const bool kRecordModeEnabled; | 87 extern const bool kRecordModeEnabled; |
88 | 88 |
89 // Most sequence numbers are used by a renderer when responding to a browser | 89 // Most sequence numbers are used by a renderer when responding to a browser |
90 // request for histogram data. This reserved number is used when a renderer | 90 // request for histogram data. This reserved number is used when a renderer |
91 // sends an unprovoked update, such as after a page has been loaded. Using | 91 // sends an unprovoked update, such as after a page has been loaded. Using |
92 // this reserved constant avoids any chance of confusion with a response having | 92 // this reserved constant avoids any chance of confusion with a response having |
93 // a browser-supplied sequence number. | 93 // a browser-supplied sequence number. |
94 extern const int kHistogramSynchronizerReservedSequenceNumber; | 94 extern const int kHistogramSynchronizerReservedSequenceNumber; |
95 | 95 |
96 // Most sequence numbers are used by a renderer when responding to a browser | |
97 // request for tracking data. This reserved number is used when a renderer | |
98 // sends an unprovoked update, such as after a page has been loaded. Using | |
99 // this reserved constant avoids any chance of confusion with a response having | |
jar (doing other things)
2011/10/30 08:04:19
I don't know that we'll need this logic for an "un
ramant (doing other things)
2011/11/01 00:52:15
Deleted this.
Done.
| |
100 // a browser-supplied sequence number. | |
101 extern const int kTrackingSynchronizerReservedSequenceNumber; | |
102 | |
96 // The language code used when the language of a page could not be detected. | 103 // The language code used when the language of a page could not be detected. |
97 // (Matches what the CLD -Compact Language Detection- library reports.) | 104 // (Matches what the CLD -Compact Language Detection- library reports.) |
98 extern const char* const kUnknownLanguageCode; | 105 extern const char* const kUnknownLanguageCode; |
99 | 106 |
100 // If another javascript message box is displayed within | 107 // If another javascript message box is displayed within |
101 // kJavascriptMessageExpectedDelay of a previous javascript message box being | 108 // kJavascriptMessageExpectedDelay of a previous javascript message box being |
102 // dismissed, display an option to suppress future message boxes from this | 109 // dismissed, display an option to suppress future message boxes from this |
103 // contents. | 110 // contents. |
104 extern const int kJavascriptMessageExpectedDelay; | 111 extern const int kJavascriptMessageExpectedDelay; |
105 | 112 |
106 // Are touch icons enabled? False by default. | 113 // Are touch icons enabled? False by default. |
107 extern const bool kEnableTouchIcon; | 114 extern const bool kEnableTouchIcon; |
108 | 115 |
109 #if defined(OS_LINUX) | 116 #if defined(OS_LINUX) |
110 // The highest and lowest assigned OOM score adjustment | 117 // The highest and lowest assigned OOM score adjustment |
111 // (oom_score_adj) used by the OomPriority Manager. | 118 // (oom_score_adj) used by the OomPriority Manager. |
112 extern const int kLowestRendererOomScore; | 119 extern const int kLowestRendererOomScore; |
113 extern const int kHighestRendererOomScore; | 120 extern const int kHighestRendererOomScore; |
114 #endif | 121 #endif |
115 | 122 |
116 #if defined(OS_WIN) | 123 #if defined(OS_WIN) |
117 // This is used by the PreRead experiment. | 124 // This is used by the PreRead experiment. |
118 extern const char kPreReadEnvironmentVariable[]; | 125 extern const char kPreReadEnvironmentVariable[]; |
119 #endif | 126 #endif |
120 | 127 |
121 } // namespace chrome | 128 } // namespace chrome |
122 | 129 |
123 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ | 130 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ |
OLD | NEW |