| Index: remoting/webapp/js_proto/chrome_proto.js
|
| diff --git a/remoting/webapp/js_proto/chrome_proto.js b/remoting/webapp/js_proto/chrome_proto.js
|
| index 618771496b06d94aaf160bbb9ef8628827df2ca2..359b997abf9f04aeeb0374d70ec9b579d4f8ad20 100644
|
| --- a/remoting/webapp/js_proto/chrome_proto.js
|
| +++ b/remoting/webapp/js_proto/chrome_proto.js
|
| @@ -524,3 +524,156 @@ chrome.cast.initialize =
|
| */
|
| chrome.cast.requestSession =
|
| function(successCallback, errorCallback) {};
|
| +
|
| +/** @type {Object} */
|
| +chrome.sockets = {};
|
| +
|
| +/** @type {Object} */
|
| +chrome.sockets.tcp = {};
|
| +
|
| +/** @constructor */
|
| +chrome.sockets.tcp.CreateInfo = function() {
|
| + /** @type {number} */
|
| + this.socketId = 0;
|
| +}
|
| +
|
| +/**
|
| + * @param {Object} properties
|
| + * @param {function(chrome.sockets.tcp.CreateInfo):void} callback
|
| + */
|
| +chrome.sockets.tcp.create = function(properties, callback) {};
|
| +
|
| +
|
| +/** @constructor */
|
| +chrome.sockets.tcp.ConnectInfo = function() {
|
| + /** @type {number} */
|
| + this.result = 0;
|
| +}
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {string} peerAddress
|
| + * @param {number} peerPort
|
| + * @param {function(chrome.sockets.tcp.ConnectInfo):void} callback
|
| + */
|
| +chrome.sockets.tcp.connect =
|
| + function(socketId, peerAddress, peerPort, callback) {};
|
| +
|
| +
|
| +/** @constructor */
|
| +chrome.sockets.tcp.SendInfo = function() {
|
| + /** @type {number} */
|
| + this.resultCode = 0;
|
| +
|
| + /** @type {number} */
|
| + this.bytesSent = 0;
|
| +}
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {ArrayBuffer} data
|
| + * @param {function(chrome.sockets.tcp.SendInfo):void} callback
|
| + */
|
| +chrome.sockets.tcp.send = function(socketId, data, callback) {};
|
| +
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + */
|
| +chrome.sockets.tcp.close = function(socketId) {};
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {Object} options
|
| + * @param {function(number):void} callback
|
| + */
|
| +chrome.sockets.tcp.secure = function(socketId, options, callback) {};
|
| +
|
| +/** @constructor */
|
| +chrome.sockets.tcp.ReceiveInfo = function() {
|
| + /** @type {number} */
|
| + this.socketId = 0;
|
| +
|
| + /** @type {ArrayBuffer} */
|
| + this.data = null;
|
| +}
|
| +
|
| +/** @type {chrome.Event} */
|
| +chrome.sockets.tcp.onReceive = null;
|
| +
|
| +/** @constructor */
|
| +chrome.sockets.tcp.ReceiveErrorInfo = function() {
|
| + /** @type {number} */
|
| + this.socketId = 0;
|
| +
|
| + /** @type {number} */
|
| + this.resultCode = 0;
|
| +}
|
| +
|
| +/** @type {chrome.Event} */
|
| +chrome.sockets.tcp.onReceiveError = null;
|
| +
|
| +/** @type {Object} */
|
| +chrome.socket = {};
|
| +
|
| +/** @constructor */
|
| +chrome.socket.CreateInfo = function() {
|
| + /** @type {number} */
|
| + this.socketId = 0;
|
| +}
|
| +
|
| +/**
|
| + * @param {string} socketType
|
| + * @param {Object} options
|
| + * @param {function(chrome.socket.CreateInfo):void} callback
|
| + */
|
| +chrome.socket.create = function(socketType, options, callback) {};
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {string} hostname
|
| + * @param {number} port
|
| + * @param {function(number):void} callback
|
| + */
|
| +chrome.socket.connect =
|
| + function(socketId, hostname, port, callback) {};
|
| +
|
| +/** @constructor */
|
| +chrome.socket.WriteInfo = function() {
|
| + /** @type {number} */
|
| + this.bytesWritten = 0;
|
| +}
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {ArrayBuffer} data
|
| + * @param {function(chrome.socket.WriteInfo):void} callback
|
| + */
|
| +chrome.socket.write = function(socketId, data, callback) {};
|
| +
|
| +/** @constructor */
|
| +chrome.socket.ReadInfo = function() {
|
| + /** @type {number} */
|
| + this.resultCode = 0;
|
| +
|
| + /** @type {ArrayBuffer} */
|
| + this.data = null;
|
| +}
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {function(chrome.socket.ReadInfo):void} callback
|
| + */
|
| +chrome.socket.read = function(socketId, callback) {};
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + */
|
| +chrome.socket.destroy = function(socketId) {};
|
| +
|
| +/**
|
| + * @param {number} socketId
|
| + * @param {Object} options
|
| + * @param {function(number):void} callback
|
| + */
|
| +chrome.socket.secure = function(socketId, options, callback) {};
|
|
|