OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * | 7 * |
8 * HostInstaller allows the caller to download the host binary and monitor the | 8 * HostInstaller allows the caller to download the host binary and monitor the |
9 * install progress of the host by pinging the host periodically via native | 9 * install progress of the host by pinging the host periodically via native |
10 * messaging. | 10 * messaging. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 port.onDisconnect.addListener(onDisconnected); | 72 port.onDisconnect.addListener(onDisconnected); |
73 port.onMessage.addListener(onMessage); | 73 port.onMessage.addListener(onMessage); |
74 port.postMessage({type: 'hello'}); | 74 port.postMessage({type: 'hello'}); |
75 }); | 75 }); |
76 }; | 76 }; |
77 | 77 |
78 /** @type {Object<string>} */ | 78 /** @type {Object<string>} */ |
79 var HOST_DOWNLOAD_URLS = { | 79 var HOST_DOWNLOAD_URLS = { |
80 'Win32': 'http://dl.google.com/dl/edgedl/chrome-remote-desktop/' + | 80 'Win32': 'https://dl.google.com/dl/edgedl/chrome-remote-desktop/' + |
81 'chromeremotedesktophost.msi', | 81 'chromeremotedesktophost.msi', |
82 'Win64': 'http://dl.google.com/dl/edgedl/chrome-remote-desktop/' + | 82 'Win64': 'https://dl.google.com/dl/edgedl/chrome-remote-desktop/' + |
83 'chromeremotedesktophost.msi', | 83 'chromeremotedesktophost.msi', |
84 'MacIntel': 'https://dl.google.com/chrome-remote-desktop/' + | 84 'MacIntel': 'https://dl.google.com/chrome-remote-desktop/' + |
85 'chromeremotedesktop.dmg', | 85 'chromeremotedesktop.dmg', |
86 'Linux x86_64': 'https://dl.google.com/linux/direct/' + | 86 'Linux x86_64': 'https://dl.google.com/linux/direct/' + |
87 'chrome-remote-desktop_current_amd64.deb', | 87 'chrome-remote-desktop_current_amd64.deb', |
88 'Linux i386': 'https://dl.google.com/linux/direct/' + | 88 'Linux i386': 'https://dl.google.com/linux/direct/' + |
89 'chrome-remote-desktop_current_i386.deb', | 89 'chrome-remote-desktop_current_i386.deb', |
90 'Linux i686': 'https://dl.google.com/linux/direct/' + | 90 'Linux i686': 'https://dl.google.com/linux/direct/' + |
91 'chrome-remote-desktop_current_i386.deb' | 91 'chrome-remote-desktop_current_i386.deb' |
92 }; | 92 }; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 */ | 166 */ |
167 remoting.HostInstaller.prototype.cancel = function() { | 167 remoting.HostInstaller.prototype.cancel = function() { |
168 if (this.checkInstallIntervalId_ !== null) { | 168 if (this.checkInstallIntervalId_ !== null) { |
169 window.clearInterval(this.checkInstallIntervalId_); | 169 window.clearInterval(this.checkInstallIntervalId_); |
170 this.checkInstallIntervalId_ = null; | 170 this.checkInstallIntervalId_ = null; |
171 } | 171 } |
172 this.downloadAndWaitForInstallPromise_ = null; | 172 this.downloadAndWaitForInstallPromise_ = null; |
173 }; | 173 }; |
174 | 174 |
175 })(); | 175 })(); |
OLD | NEW |