diff options
author | kelvinp <kelvinp@chromium.org> | 2015-06-25 14:31:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-25 21:32:00 +0000 |
commit | f2c15c3f1adebd9a171f849fc7ec15e3f4b165e8 (patch) | |
tree | 730e84980b14ca226e1ad8a4029aab189d831868 /remoting/webapp/files.gni | |
parent | 765381052c1fdda85f934ba24722463347c472b6 (diff) | |
download | chromium_src-f2c15c3f1adebd9a171f849fc7ec15e3f4b165e8.zip chromium_src-f2c15c3f1adebd9a171f849fc7ec15e3f4b165e8.tar.gz chromium_src-f2c15c3f1adebd9a171f849fc7ec15e3f4b165e8.tar.bz2 |
[Chromoting] Implements remoting.TelemetryEventWriter
This change implements remoting.TelemetryEventWriter. The TelemetryEventWriter
has two components:
a) a Service that runs in the background page
b) Client static methods that can be called from any page.
When a session starts, the client calls Client.startSession(windowId, sessionId).
Internally, the service will keep track of a mapping from window id to
ongoing sessions. In this way, if a session is dropped (the user closes the window via
the system context menu) unexpectedly, the Service can detect that and automatically
log the session close event.
BUG=497268
Review URL: https://codereview.chromium.org/1203793002
Cr-Commit-Position: refs/heads/master@{#336257}
Diffstat (limited to 'remoting/webapp/files.gni')
-rw-r--r-- | remoting/webapp/files.gni | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/remoting/webapp/files.gni b/remoting/webapp/files.gni index e353fd7..d8ac88c 100644 --- a/remoting/webapp/files.gni +++ b/remoting/webapp/files.gni @@ -90,6 +90,7 @@ remoting_webapp_unittests_js_files = [ "base/js/l10n_unittest.js", "base/js/platform_unittest.js", "base/js/protocol_extension_manager_unittest.js", + "base/js/telemetry_event_writer_unittest.js", "base/js/typecheck_unittest.js", "base/js/viewport_unittest.js", "base/js/window_shape_unittest.js", @@ -164,6 +165,7 @@ remoting_webapp_shared_js_client_files = [ "base/js/credentials_provider.js", "base/js/host_desktop.js", "base/js/smart_reconnector.js", + "base/js/telemetry_event_writer.js", ] # Remoting core JavaScript files. @@ -181,7 +183,6 @@ remoting_webapp_shared_js_core_files = [ "base/js/suspend_detector.js", "base/js/typecheck.js", "base/js/window_message_dispatcher.js", - "base/js/xhr_event_writer.js", "base/js/xhr.js", ] @@ -394,8 +395,10 @@ remoting_webapp_background_html_all_js_files += [ "base/js/oauth2_api.js", "base/js/oauth2_api_impl.js", "base/js/plugin_settings.js", + "base/js/telemetry_event_writer.js", "base/js/typecheck.js", "base/js/xhr.js", + "base/js/xhr_event_writer.js", "crd/js/host_installer.js", "crd/js/host_session.js", "crd/js/it2me_host_facade.js", |