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 #include "content/common/content_constants_internal.h" | 5 #include "content/common/content_constants_internal.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
11 #if defined(OS_ANDROID) | 11 #if defined(OS_ANDROID) |
12 const int64_t kHungRendererDelayMs = 5000; | 12 const int64_t kHungRendererDelayMs = 5000; |
13 #else | 13 #else |
14 // TODO(jdduke): Consider shortening this delay on desktop. It was originally | 14 // TODO(jdduke): Consider shortening this delay on desktop. It was originally |
15 // set to 5 seconds but was extended to accomodate less responsive plugins. | 15 // set to 5 seconds but was extended to accomodate less responsive plugins. |
16 const int64_t kHungRendererDelayMs = 30000; | 16 const int64_t kHungRendererDelayMs = 30000; |
17 #endif | 17 #endif |
18 | 18 |
19 const int64_t kNewContentRenderingDelayMs = 4000; | 19 const int64_t kNewContentRenderingDelayMs = 4000; |
20 | 20 |
21 const uint16_t kMaxPluginSideLength = 1 << 15; | |
22 // 8m pixels. | |
23 const uint32_t kMaxPluginSize = 8 << 20; | |
24 | |
25 // 20MiB | 21 // 20MiB |
26 const size_t kMaxLengthOfDataURLString = 1024 * 1024 * 20; | 22 const size_t kMaxLengthOfDataURLString = 1024 * 1024 * 20; |
27 | 23 |
28 const int kTraceEventBrowserProcessSortIndex = -6; | 24 const int kTraceEventBrowserProcessSortIndex = -6; |
29 const int kTraceEventRendererProcessSortIndex = -5; | 25 const int kTraceEventRendererProcessSortIndex = -5; |
30 const int kTraceEventPluginProcessSortIndex = -4; | |
31 const int kTraceEventPpapiProcessSortIndex = -3; | 26 const int kTraceEventPpapiProcessSortIndex = -3; |
32 const int kTraceEventPpapiBrokerProcessSortIndex = -2; | 27 const int kTraceEventPpapiBrokerProcessSortIndex = -2; |
33 const int kTraceEventGpuProcessSortIndex = -1; | 28 const int kTraceEventGpuProcessSortIndex = -1; |
34 | 29 |
35 const int kTraceEventRendererMainThreadSortIndex = -1; | 30 const int kTraceEventRendererMainThreadSortIndex = -1; |
36 | 31 |
37 } // namespace content | 32 } // namespace content |
OLD | NEW |