Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
|
not at google - send to devlin
2014/03/28 18:27:37
can you make this file look like a copy of the oth
Ken Rockot(use gerrit already)
2014/03/28 19:48:21
Done.
| |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // The type schemas for structured manifest items. Not actually a callable API. | |
| 6 | |
| 7 [ | |
| 8 { | |
| 9 "namespace": "manifestTypes", | |
| 10 "description": "Schemas for structured manifest entries", | |
| 11 "compiler_options": { | |
| 12 "generate_error_messages": true | |
| 13 }, | |
| 14 "types": [ | |
| 15 { | |
| 16 "id": "SocketHostPatterns", | |
| 17 "description": "<p>A single string or a list of strings representing hos t:port patterns.</p>", | |
| 18 "choices": [ | |
| 19 { "type": "string" }, | |
| 20 { "type": "array", "items": { "type": "string" } } | |
| 21 ] | |
| 22 }, | |
| 23 { | |
| 24 "id": "sockets", | |
| 25 "type": "object", | |
| 26 "description": "The <code>sockets</code> manifest property declares whic h sockets operations an app can issue.", | |
| 27 "properties": { | |
| 28 "udp": { | |
| 29 "description": "The <code>udp</code> manifest property declares whic h sockets.udp operations an app can issue.", | |
| 30 "optional": true, | |
| 31 "type": "object", | |
| 32 "properties": { | |
| 33 "bind": { | |
| 34 "description": "<p>The host:port pattern for <code>bind</code> o perations.</p>", | |
| 35 "optional": true, | |
| 36 "$ref": "SocketHostPatterns" | |
| 37 }, | |
| 38 "send": { | |
| 39 "description": "<p>The host:port pattern for <code>send</code> o perations.</p>", | |
| 40 "optional": true, | |
| 41 "$ref": "SocketHostPatterns" | |
| 42 }, | |
| 43 "multicastMembership": { | |
| 44 "description": "<p>The host:port pattern for <code>joinGroup</co de> operations.</p>", | |
| 45 "optional": true, | |
| 46 "$ref": "SocketHostPatterns" | |
| 47 } | |
| 48 } | |
| 49 }, | |
| 50 "tcp": { | |
| 51 "description": "The <code>tcp</code> manifest property declares whic h sockets.tcp operations an app can issue.", | |
| 52 "optional": true, | |
| 53 "type": "object", | |
| 54 "properties": { | |
| 55 "connect": { | |
| 56 "description": "<p>The host:port pattern for <code>connect</code > operations.</p>", | |
| 57 "optional": true, | |
| 58 "$ref": "SocketHostPatterns" | |
| 59 } | |
| 60 } | |
| 61 }, | |
| 62 "tcpServer": { | |
| 63 "description": "The <code>tcpServer</code> manifest property declare s which sockets.tcpServer operations an app can issue.", | |
| 64 "optional": true, | |
| 65 "type": "object", | |
| 66 "properties": { | |
| 67 "listen": { | |
| 68 "description": "<p>The host:port pattern for <code>listen</code> operations.</p>", | |
| 69 "optional": true, | |
| 70 "$ref": "SocketHostPatterns" | |
| 71 } | |
| 72 } | |
| 73 } | |
| 74 } | |
| 75 } | |
| 76 ] | |
| 77 } | |
| 78 ] | |
| OLD | NEW |