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

Side by Side Diff: remoting/webapp/host_plugin_proto.js

Issue 9316078: Added daemon process NPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unused headers. Fixed Windows and Mac builds. Created 8 years, 10 months 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 | Annotate | Revision Log
« remoting/remoting.gyp ('K') | « remoting/remoting.gyp ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains type definitions for the host plugin. It is used only 5 // This file contains type definitions for the host plugin. It is used only
6 // with JSCompiler to verify the type-correctness of our code. 6 // with JSCompiler to verify the type-correctness of our code.
7 7
8 /** @suppress {duplicate} */ 8 /** @suppress {duplicate} */
9 var remoting = remoting || {}; 9 var remoting = remoting || {};
10 10
11 /** @constructor 11 /** @constructor
12 * @extends HTMLElement 12 * @extends HTMLElement
13 */ 13 */
14 remoting.HostPlugin = function() {}; 14 remoting.HostPlugin = function() {};
15 15
16 /** @param {string} email The email address of the connector. 16 /** @param {string} email The email address of the connector.
17 * @param {string} token The access token for the connector. 17 * @param {string} token The access token for the connector.
18 * @return {void} Nothing. */ 18 * @return {void} Nothing. */
19 remoting.HostPlugin.prototype.connect = function(email, token) {}; 19 remoting.HostPlugin.prototype.connect = function(email, token) {};
20 20
21 /** @return {void} Nothing. */ 21 /** @return {void} Nothing. */
22 remoting.HostPlugin.prototype.disconnect = function() {}; 22 remoting.HostPlugin.prototype.disconnect = function() {};
23 23
24 /** @param {function(string):string} callback Pointer to chrome.i18n.getMessage. 24 /** @param {function(string):string} callback Pointer to chrome.i18n.getMessage.
25 * @return {void} Nothing. */ 25 * @return {void} Nothing. */
26 remoting.HostPlugin.prototype.localize = function(callback) {}; 26 remoting.HostPlugin.prototype.localize = function(callback) {};
27 27
28 /** @param {string} pin The PIN to use for authentication.
29 * @return {void} Nothing. */
30 remoting.HostPlugin.prototype.startDaemon = function(pin) {};
31
32 /** @return {void} Nothing. */
33 remoting.HostPlugin.prototype.stopDaemon = function() {};
34
28 /** @type {number} */ remoting.HostPlugin.prototype.state; 35 /** @type {number} */ remoting.HostPlugin.prototype.state;
29 36
30 /** @type {number} */ remoting.HostPlugin.prototype.STARTING; 37 /** @type {number} */ remoting.HostPlugin.prototype.STARTING;
31 /** @type {number} */ remoting.HostPlugin.prototype.REQUESTED_ACCESS_CODE; 38 /** @type {number} */ remoting.HostPlugin.prototype.REQUESTED_ACCESS_CODE;
32 /** @type {number} */ remoting.HostPlugin.prototype.RECEIVED_ACCESS_CODE; 39 /** @type {number} */ remoting.HostPlugin.prototype.RECEIVED_ACCESS_CODE;
33 /** @type {number} */ remoting.HostPlugin.prototype.CONNECTED; 40 /** @type {number} */ remoting.HostPlugin.prototype.CONNECTED;
34 /** @type {number} */ remoting.HostPlugin.prototype.DISCONNECTED; 41 /** @type {number} */ remoting.HostPlugin.prototype.DISCONNECTED;
35 /** @type {number} */ remoting.HostPlugin.prototype.DISCONNECTING; 42 /** @type {number} */ remoting.HostPlugin.prototype.DISCONNECTING;
36 /** @type {number} */ remoting.HostPlugin.prototype.ERROR; 43 /** @type {number} */ remoting.HostPlugin.prototype.ERROR;
37 44
38 /** @type {string} */ remoting.HostPlugin.prototype.accessCode; 45 /** @type {string} */ remoting.HostPlugin.prototype.accessCode;
39 /** @type {number} */ remoting.HostPlugin.prototype.accessCodeLifetime; 46 /** @type {number} */ remoting.HostPlugin.prototype.accessCodeLifetime;
40 47
41 /** @type {string} */ remoting.HostPlugin.prototype.client; 48 /** @type {string} */ remoting.HostPlugin.prototype.client;
42 49
50 /** @type {number} True if the daemon is running. */
51 remoting.HostPlugin.prototype.daemonState;
52
43 /** @type {function(boolean):void} */ 53 /** @type {function(boolean):void} */
44 remoting.HostPlugin.prototype.onNatTraversalPolicyChanged; 54 remoting.HostPlugin.prototype.onNatTraversalPolicyChanged;
OLDNEW
« remoting/remoting.gyp ('K') | « remoting/remoting.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698