512dd861f4a771a255aa42786b178907c49ab5ea
[platform/framework/web/crosswalk.git] / src / extensions / common / api / _permission_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 permissions for extension APIs implemented
6 // under src/extensions.
7
8 // See extensions/common/features/* to understand this file, in particular
9 // feature.h, simple_feature.h, and base_feature_provider.h.
10
11 // To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash:
12 //
13 // $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \
14 // sha1sum | tr '[:lower:]' '[:upper:]'
15 // 9A0417016F345C934A1A88F55CA17C05014EEEBA  -
16 //
17 // Google employees: please update http://go/chrome-api-whitelist to map
18 // hashes back to ids.
19
20 // If you add a new platform_app permission please update the "stubs_app" test:
21 // chrome/test/data/extensions/api_test/stubs_app/manifest.json
22
23 {
24   "dns": [
25     {
26       "channel": "dev",
27       "extension_types": ["extension", "platform_app"]
28     },
29     {
30       "channel": "stable",
31       "extension_types": ["extension", "platform_app"],
32       "whitelist": [
33         "7AE714FFD394E073F0294CFA134C9F91DB5FBAA4",  // CCD Development
34         "C7DA3A55C2355F994D3FDDAD120B426A0DF63843",  // CCD Testing
35         "75E3CFFFC530582C583E4690EF97C70B9C8423B7"   // CCD Release
36       ]
37     }
38   ],
39   "hid": [
40     {
41       "channel": "stable",
42       "extension_types": ["platform_app"]
43     },
44     {
45       "channel": "stable",
46       "extension_types": ["extension"],
47       "whitelist": [
48         "496B6890097EB6E19809ADEADD095A8721FBB2E0",  // FIDO U2F APIs
49         "E24F1786D842E91E74C27929B0B3715A4689A473"   // CryptoToken
50       ]
51     }
52   ],
53   "power": {
54     "channel": "stable",
55     "extension_types": [ "extension", "legacy_packaged_app", "platform_app" ]
56   },
57   // Note: runtime is not actually a permission, but some systems check these
58   // values to verify restrictions.
59   "runtime": {
60     "channel": "stable",
61     "extension_types": ["extension", "legacy_packaged_app", "platform_app"]
62   },
63   "serial": {
64     "channel": "stable",
65     "extension_types": ["platform_app"]
66   },
67   "socket": [
68     {
69       "channel": "stable",
70       "extension_types": ["platform_app"]
71     },
72     {
73       "channel": "stable",
74       "extension_types": ["extension"],
75       "whitelist": [
76         // The connectivity diagnostic utility is a component extension that is
77         // used to try to provide suggestions on how to fix connection issues.
78         // It should be the only non-app allowed to use the socket API.
79         "32A1BA997F8AB8DE29ED1BA94AAF00CF2A3FEFA7"
80       ]
81     }
82   ],
83   "storage": {
84     "channel": "stable",
85     "extension_types": ["extension", "legacy_packaged_app", "platform_app"],
86     "min_manifest_version": 2
87   },
88   "usb": [
89     {
90       "channel": "stable",
91       "extension_types": ["platform_app"]
92     },
93     {
94       "channel": "stable",
95       "extension_types": ["extension"],
96       "whitelist": [
97         "496B6890097EB6E19809ADEADD095A8721FBB2E0",  // FIDO U2F APIs
98         "E24F1786D842E91E74C27929B0B3715A4689A473"   // CryptoToken
99       ]
100     }
101   ],
102   "usbDevices": [
103     {
104       "channel": "stable",
105       "extension_types": ["platform_app"]
106     },
107     {
108       "channel": "stable",
109       "extension_types": ["extension"],
110       "whitelist": [
111         "496B6890097EB6E19809ADEADD095A8721FBB2E0",  // FIDO U2F APIs
112         "E24F1786D842E91E74C27929B0B3715A4689A473"   // CryptoToken
113       ]
114     }
115   ]
116 }