summaryrefslogtreecommitdiff
path: root/chromium/content/common/content_constants_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/content_constants_internal.h')
-rw-r--r--chromium/content/common/content_constants_internal.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/chromium/content/common/content_constants_internal.h b/chromium/content/common/content_constants_internal.h
index 0ea9c734bd8..c19566321a9 100644
--- a/chromium/content/common/content_constants_internal.h
+++ b/chromium/content/common/content_constants_internal.h
@@ -8,21 +8,19 @@
#include <stddef.h>
#include <stdint.h>
+#include "base/time/time.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
namespace content {
-// How long to wait before we consider a renderer hung.
-CONTENT_EXPORT extern const int64_t kHungRendererDelayMs;
-
-// How long to wait for newly loaded content to send a compositor frame
-// before clearing previously displayed graphics.
-extern const int64_t kNewContentRenderingDelayMs;
-
-// Maximum wait time for an asynchronous hit test request sent to a renderer
-// process (in milliseconds).
-CONTENT_EXPORT extern const int64_t kAsyncHitTestTimeoutMs;
+#if defined(OS_ANDROID)
+constexpr base::TimeDelta kHungRendererDelay = base::TimeDelta::FromSeconds(5);
+#else
+// TODO(jdduke): Consider shortening this delay on desktop. It was originally
+// set to 5 seconds but was extended to accommodate less responsive plugins.
+constexpr base::TimeDelta kHungRendererDelay = base::TimeDelta::FromSeconds(30);
+#endif
// The maximum length of string as data url.
extern const size_t kMaxLengthOfDataURLString;