Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Side by Side Diff: content/common/content_constants_internal.cc

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/common_param_traits_unittest.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) 9 #if defined(OS_ANDROID)
10 const int64 kHungRendererDelayMs = 5000; 10 const int64 kHungRendererDelayMs = 5000;
11 #else 11 #else
12 // TODO(jdduke): Consider shortening this delay on desktop. It was originally 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. 13 // set to 5 seconds but was extended to accomodate less responsive plugins.
14 const int64 kHungRendererDelayMs = 30000; 14 const int64 kHungRendererDelayMs = 30000;
15 #endif 15 #endif
16 16
17 const int64 kNewContentRenderingDelayMs = 4000; 17 const int64 kNewContentRenderingDelayMs = 4000;
18 18
19 const uint16 kMaxPluginSideLength = 1 << 15; 19 const uint16 kMaxPluginSideLength = 1 << 15;
20 // 8m pixels. 20 // 8m pixels.
21 const uint32 kMaxPluginSize = 8 << 20; 21 const uint32 kMaxPluginSize = 8 << 20;
22 22
23 // 10MiB 23 // 20MiB
24 const size_t kMaxLengthOfDataURLString = 1024 * 1024 * 10; 24 const size_t kMaxLengthOfDataURLString = 1024 * 1024 * 20;
25 25
26 const int kTraceEventBrowserProcessSortIndex = -6; 26 const int kTraceEventBrowserProcessSortIndex = -6;
27 const int kTraceEventRendererProcessSortIndex = -5; 27 const int kTraceEventRendererProcessSortIndex = -5;
28 const int kTraceEventPluginProcessSortIndex = -4; 28 const int kTraceEventPluginProcessSortIndex = -4;
29 const int kTraceEventPpapiProcessSortIndex = -3; 29 const int kTraceEventPpapiProcessSortIndex = -3;
30 const int kTraceEventPpapiBrokerProcessSortIndex = -2; 30 const int kTraceEventPpapiBrokerProcessSortIndex = -2;
31 const int kTraceEventGpuProcessSortIndex = -1; 31 const int kTraceEventGpuProcessSortIndex = -1;
32 32
33 const int kTraceEventRendererMainThreadSortIndex = -1; 33 const int kTraceEventRendererMainThreadSortIndex = -1;
34 34
35 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « content/common/common_param_traits_unittest.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698