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.
5 // This features file defines manifest keys 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.
9 // To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash:
11 // $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \
12 // sha1sum | tr '[:lower:]' '[:upper:]'
13 // 9A0417016F345C934A1A88F55CA17C05014EEEBA -
15 // Google employees: please update http://go/chrome-api-whitelist to map
16 // hashes back to ids.
19 // The default platform app CSP can only be overridden by whitelisted apps.
20 // This is a separate key from the top-level content_security_policy one since
21 // we can't combine type restrictions with whitelisted ID restrictions. If
22 // there is a need for additional whitelisted entries, the feature system
23 // should instead be extended to support OR-ing of restrictions.
24 "app.content_security_policy": {
26 "extension_types": ["platform_app"],
27 "min_manifest_version": 2,
29 "nckgahadagoaajjgafhacjanaoiihapd", // Google Talk prod
30 "eggnbpckecmjlblplehfpjjdhhidfdoj", // Google Talk beta
31 "ppleadejekpmccmnpjdimmlfljlkdfej", // Google Talk alpha
32 "ljclpkphhpbpinifbeabbhlfddcpfdde", // Google Talk debug
33 "lphgohfeebnhcpiohjndkgbhhkoapkjc" // Apps Debugger
38 "extension_types": ["platform_app"],
39 "min_manifest_version": 2
44 // Platform apps specify their background page via app.background.
45 "extension", "legacy_packaged_app", "hosted_app"
48 "background.persistent": {
51 "extension", "legacy_packaged_app"
53 "min_manifest_version": 2
58 "extension", "legacy_packaged_app", "hosted_app"
60 "max_manifest_version": 1
62 "content_security_policy": {
64 // Platform apps have a restricted content security policy that cannot be
65 // overriden (except for a whitelist of exceptions, see the
66 // app.content_security_policy whitelist).
67 "extension_types": ["extension", "legacy_packaged_app"]
72 "extension_types": ["extension", "legacy_packaged_app"]
76 "extension_types": ["platform_app"],
77 "location": "component"
95 "extension", "legacy_packaged_app", "hosted_app", "platform_app"
101 "extension", "platform_app", "legacy_packaged_app"
103 "min_manifest_version": 2
107 "extension_types": ["platform_app"]
109 "web_accessible_resources": [
113 "extension", "legacy_packaged_app", "hosted_app"
118 "extension_types": ["platform_app"],
119 "location": "component"
124 "extension_types": ["platform_app"],
125 "min_manifest_version": 2