| 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 #ifndef CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ | 5 #ifndef CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ |
| 6 #define CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ | 6 #define CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 // How long to wait before we consider a renderer hung. | 13 // How long to wait before we consider a renderer hung. |
| 14 CONTENT_EXPORT extern const int64 kHungRendererDelayMs; | 14 CONTENT_EXPORT extern const int64 kHungRendererDelayMs; |
| 15 | 15 |
| 16 // How long to wait for newly loaded content to send a compositor frame |
| 17 // before clearing previously displayed graphics. |
| 18 extern const int64 kNewContentRenderingDelayMs; |
| 19 |
| 16 // The maximum plugin width and height. | 20 // The maximum plugin width and height. |
| 17 extern const uint16 kMaxPluginSideLength; | 21 extern const uint16 kMaxPluginSideLength; |
| 18 // The maximum plugin size, defined as the number of pixels occupied by the | 22 // The maximum plugin size, defined as the number of pixels occupied by the |
| 19 // plugin. | 23 // plugin. |
| 20 extern const uint32 kMaxPluginSize; | 24 extern const uint32 kMaxPluginSize; |
| 21 | 25 |
| 22 // The maximum length of string as data url. | 26 // The maximum length of string as data url. |
| 23 extern const size_t kMaxLengthOfDataURLString; | 27 extern const size_t kMaxLengthOfDataURLString; |
| 24 | 28 |
| 25 // Constants used to organize content processes in about:tracing. | 29 // Constants used to organize content processes in about:tracing. |
| 26 CONTENT_EXPORT extern const int kTraceEventBrowserProcessSortIndex; | 30 CONTENT_EXPORT extern const int kTraceEventBrowserProcessSortIndex; |
| 27 CONTENT_EXPORT extern const int kTraceEventRendererProcessSortIndex; | 31 CONTENT_EXPORT extern const int kTraceEventRendererProcessSortIndex; |
| 28 CONTENT_EXPORT extern const int kTraceEventPluginProcessSortIndex; | 32 CONTENT_EXPORT extern const int kTraceEventPluginProcessSortIndex; |
| 29 CONTENT_EXPORT extern const int kTraceEventPpapiProcessSortIndex; | 33 CONTENT_EXPORT extern const int kTraceEventPpapiProcessSortIndex; |
| 30 CONTENT_EXPORT extern const int kTraceEventPpapiBrokerProcessSortIndex; | 34 CONTENT_EXPORT extern const int kTraceEventPpapiBrokerProcessSortIndex; |
| 31 CONTENT_EXPORT extern const int kTraceEventGpuProcessSortIndex; | 35 CONTENT_EXPORT extern const int kTraceEventGpuProcessSortIndex; |
| 32 | 36 |
| 33 // Constants used to organize content threads in about:tracing. | 37 // Constants used to organize content threads in about:tracing. |
| 34 CONTENT_EXPORT extern const int kTraceEventRendererMainThreadSortIndex; | 38 CONTENT_EXPORT extern const int kTraceEventRendererMainThreadSortIndex; |
| 35 | 39 |
| 36 } // namespace content | 40 } // namespace content |
| 37 | 41 |
| 38 #endif // CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ | 42 #endif // CONTENT_COMMON_CONTENT_CONSTANTS_INTERNAL_H_ |
| OLD | NEW |