Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / content / common / content_constants_internal.cc
blob85c7de03b6a01dacbf994bb3d115a9d52362e257
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
3 // found in the LICENSE file.
5 #include "content/common/content_constants_internal.h"
7 namespace content {
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.
14 const int64 kHungRendererDelayMs = 30000;
15 #endif
17 const int64 kNewContentRenderingDelayMs = 2000;
19 const uint16 kMaxPluginSideLength = 1 << 15;
20 // 8m pixels.
21 const uint32 kMaxPluginSize = 8 << 20;
23 // 10MiB
24 const size_t kMaxLengthOfDataURLString = 1024 * 1024 * 10;
26 const int kTraceEventBrowserProcessSortIndex = -6;
27 const int kTraceEventRendererProcessSortIndex = -5;
28 const int kTraceEventPluginProcessSortIndex = -4;
29 const int kTraceEventPpapiProcessSortIndex = -3;
30 const int kTraceEventPpapiBrokerProcessSortIndex = -2;
31 const int kTraceEventGpuProcessSortIndex = -1;
33 const int kTraceEventRendererMainThreadSortIndex = -1;
35 } // namespace content