summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/files.gni
diff options
context:
space:
mode:
authorkelvinp <kelvinp@chromium.org>2015-05-26 17:54:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-27 00:54:24 +0000
commit2a8128fc0c63c3e38ba25ddd82e09c586a8bd10d (patch)
tree91921ffad84f70b5ddbf7e84e2c17ef22a3caf8f /remoting/webapp/files.gni
parentd879a2e3c4c65ae67a360784099f0690af523f72 (diff)
downloadchromium_src-2a8128fc0c63c3e38ba25ddd82e09c586a8bd10d.zip
chromium_src-2a8128fc0c63c3e38ba25ddd82e09c586a8bd10d.tar.gz
chromium_src-2a8128fc0c63c3e38ba25ddd82e09c586a8bd10d.tar.bz2
[AppRemoting] Drop the connection after resuming from a sleep > 30s.
Summary of changes: 1. Implements a resume detector by detecting differences in the time elapsed between ticks in setInterval(). 2. Drops the connection if the client with ERROR_CLIENT_SUSPENDED if the webapp resumes from a sleep longer than 30s. 3. A follow up CL will be done to update the error code on the directory service. BUG=486888 Review URL: https://codereview.chromium.org/1148993003 Cr-Commit-Position: refs/heads/master@{#331493}
Diffstat (limited to 'remoting/webapp/files.gni')
-rw-r--r--remoting/webapp/files.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/webapp/files.gni b/remoting/webapp/files.gni
index dde5fa6..48b61da 100644
--- a/remoting/webapp/files.gni
+++ b/remoting/webapp/files.gni
@@ -174,6 +174,7 @@ remoting_webapp_shared_js_core_files = [
"base/js/protocol_extension.js",
"base/js/error.js",
"base/js/plugin_settings.js",
+ "base/js/suspend_detector.js",
"base/js/typecheck.js",
"base/js/xhr.js",
]