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