-
Notifications
You must be signed in to change notification settings - Fork 8
/
host_list_api.js
49 lines (42 loc) · 1.1 KB
/
host_list_api.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* API for host-list management.
*/
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/** @interface */
remoting.HostListApi = function() {
};
/**
* Fetch the list of hosts for a user.
*
* @param {function(Array<remoting.Host>):void} onDone
* @param {function(remoting.Error):void} onError
*/
remoting.HostListApi.prototype.get = function(onDone, onError) {
};
/**
* Update the information for a host.
*
* @param {function():void} onDone
* @param {function(remoting.Error):void} onError
* @param {string} hostId
* @param {string} hostName
* @param {string} hostPublicKey
*/
remoting.HostListApi.prototype.put =
function(hostId, hostName, hostPublicKey, onDone, onError) {
};
/**
* Delete a host.
*
* @param {function():void} onDone
* @param {function(remoting.Error):void} onError
* @param {string} hostId
*/
remoting.HostListApi.prototype.remove = function(hostId, onDone, onError) {
};