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

Unified Diff: extensions/common/api/manifest_types.json

Issue 217263002: Move sockets manifest types to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/api/api.gyp ('k') | extensions/common/api/sockets/sockets_manifest_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/manifest_types.json
diff --git a/extensions/common/api/manifest_types.json b/extensions/common/api/manifest_types.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8ea2bd7c6f172f31667900e4d903485dbc3edad
--- /dev/null
+++ b/extensions/common/api/manifest_types.json
@@ -0,0 +1,78 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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.
+// found in the LICENSE file.
+
+// The type schemas for structured manifest items. Not actually a callable API.
+
+[
+ {
+ "namespace": "manifestTypes",
+ "description": "Schemas for structured manifest entries",
+ "compiler_options": {
+ "generate_error_messages": true
+ },
+ "types": [
+ {
+ "id": "SocketHostPatterns",
+ "description": "<p>A single string or a list of strings representing host:port patterns.</p>",
+ "choices": [
+ { "type": "string" },
+ { "type": "array", "items": { "type": "string" } }
+ ]
+ },
+ {
+ "id": "sockets",
+ "type": "object",
+ "description": "The <code>sockets</code> manifest property declares which sockets operations an app can issue.",
+ "properties": {
+ "udp": {
+ "description": "The <code>udp</code> manifest property declares which sockets.udp operations an app can issue.",
+ "optional": true,
+ "type": "object",
+ "properties": {
+ "bind": {
+ "description": "<p>The host:port pattern for <code>bind</code> operations.</p>",
+ "optional": true,
+ "$ref": "SocketHostPatterns"
+ },
+ "send": {
+ "description": "<p>The host:port pattern for <code>send</code> operations.</p>",
+ "optional": true,
+ "$ref": "SocketHostPatterns"
+ },
+ "multicastMembership": {
+ "description": "<p>The host:port pattern for <code>joinGroup</code> operations.</p>",
+ "optional": true,
+ "$ref": "SocketHostPatterns"
+ }
+ }
+ },
+ "tcp": {
+ "description": "The <code>tcp</code> manifest property declares which sockets.tcp operations an app can issue.",
+ "optional": true,
+ "type": "object",
+ "properties": {
+ "connect": {
+ "description": "<p>The host:port pattern for <code>connect</code> operations.</p>",
+ "optional": true,
+ "$ref": "SocketHostPatterns"
+ }
+ }
+ },
+ "tcpServer": {
+ "description": "The <code>tcpServer</code> manifest property declares which sockets.tcpServer operations an app can issue.",
+ "optional": true,
+ "type": "object",
+ "properties": {
+ "listen": {
+ "description": "<p>The host:port pattern for <code>listen</code> operations.</p>",
+ "optional": true,
+ "$ref": "SocketHostPatterns"
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+]
« no previous file with comments | « extensions/common/api/api.gyp ('k') | extensions/common/api/sockets/sockets_manifest_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698