Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / extensions / common / api / _api_features.json
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This features file defines extension APIs implemented under src/extensions.
6 // See extensions/common/features/* to understand this file, in particular
7 // feature.h, simple_feature.h, and base_feature_provider.h.
8 //
9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context
10 // type will require manually updating chrome/renderer/resources/dispatcher.cc.
11
12 // To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash:
13 //
14 // $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \
15 // sha1sum | tr '[:lower:]' '[:upper:]'
16 // 9A0417016F345C934A1A88F55CA17C05014EEEBA  -
17 //
18 // Google employees: please update http://go/chrome-api-whitelist to map
19 // hashes back to ids.
20
21 {
22   "dns": {
23     "dependencies": ["permission:dns"],
24     "contexts": ["blessed_extension"]
25   },
26   "runtime": {
27     "channel": "stable",
28     "extension_types": ["extension", "legacy_packaged_app", "platform_app"],
29     "contexts": ["blessed_extension"]
30   },
31   "runtime.getManifest": {
32     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
33   },
34   "runtime.connect": {
35     "contexts": "all",
36     "matches": ["<all_urls>"]
37   },
38   "runtime.getURL": {
39     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
40   },
41   "runtime.id": {
42     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
43   },
44   "runtime.lastError": {
45     "contexts": "all",
46     "extension_types": "all",
47     "matches": ["<all_urls>"]
48   },
49   "runtime.onConnect": {
50     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
51   },
52   "runtime.onMessage": {
53     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
54   },
55   "runtime.reload": {
56     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
57   },
58   "runtime.requestUpdateCheck": {
59     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
60   },
61   "runtime.sendMessage": {
62     "contexts": "all",
63     "matches": ["<all_urls>"]
64   },
65   "runtime.setUninstallURL": {
66     "channel": "dev",
67     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
68   },
69   "socket": {
70     "dependencies": ["permission:socket"],
71     "contexts": ["blessed_extension"]
72   },
73   "sockets.tcp": {
74     "dependencies": ["manifest:sockets"],
75     "contexts": ["blessed_extension"]
76   },
77   "sockets.tcpServer": {
78     "dependencies": ["manifest:sockets"],
79     "contexts": ["blessed_extension"]
80   },
81   "sockets.udp": {
82     "dependencies": ["manifest:sockets"],
83     "contexts": ["blessed_extension"]
84   },
85   "storage": {
86     "dependencies": ["permission:storage"],
87     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
88   },
89   "test": {
90     "internal": true,
91     "channel": "stable",
92     "extension_types": "all",
93     "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
94   },
95   "types": {
96     "channel": "stable",
97     "extension_types": ["extension", "legacy_packaged_app", "platform_app"],
98     "contexts": ["blessed_extension"]
99   },
100   "types.private": {
101     "channel": "dev",
102     "extension_types": ["extension"],
103     "location": "component"
104   },
105   "usb": {
106     "dependencies": ["permission:usb"],
107     "contexts": ["blessed_extension"]
108   }
109 }