home *** CD-ROM | disk | FTP | other *** search
- // Copyright (c) 2012 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.
-
- [
- {
- "namespace": "webSocketProxyPrivate",
- "nodoc": true,
- "types": [],
- "functions": [
- {
- "name": "getPassportForTCP",
- "description": "requests authorization token for websocket to TCP proxy.",
- "parameters": [
- {
- "type": "string",
- "name": "hostname",
- "minLength": 1,
- "description": "hostname to which TCP connection is requested."
- },
- {
- "type": "integer",
- "name": "port",
- "minimum": 1,
- "maximum": 65535,
- "description": "TCP port number."
- },
- {
- "type": "function",
- "name": "callback",
- "parameters": [
- {
- "type": "string",
- "name": "passport",
- "description": "Passport for passing to proxy."
- }
- ]
- }
- ]
- },
- {
- "name": "getURLForTCP",
- "description": "requests specific websocket URL that can be used as TCP proxy.",
- "parameters": [
- {
- "type": "string",
- "name": "hostname",
- "minLength": 1,
- "description": "hostname to which TCP connection is requested."
- },
- {
- "type": "integer",
- "name": "port",
- "minimum": 1,
- "maximum": 65535,
- "description": "TCP port number."
- },
- {
- "type": "object",
- "name": "details",
- "description": "Dictionary which contains requested parameters of connection",
- "properties": {
- "tls": {"type": "boolean", "optional": "true", "description": "whether TLS over TCP is requested"}
- }
- },
- {
- "type": "function",
- "name": "callback",
- "parameters": [
- {
- "type": "string",
- "name": "url",
- "description": "URL for opening as WebSocket."
- }
- ]
- }
- ]
- }
- ],
- "events": []
- }
- ]
-