| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This features file defines extension APIs implemented under src/extensions. | 5 // This features file defines extension APIs implemented under src/extensions. |
| 6 // See extensions/common/features/* to understand this file, in particular | 6 // See extensions/common/features/* to understand this file, in particular |
| 7 // feature.h, simple_feature.h, and base_feature_provider.h. | 7 // feature.h, simple_feature.h, and base_feature_provider.h. |
| 8 // | 8 // |
| 9 // Note that specifying "web_page", "blessed_web_page", or "all" as a context | 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. | 10 // type will require manually updating chrome/renderer/resources/dispatcher.cc. |
| 11 | 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 |
| 12 { | 21 { |
| 13 "dns": { | 22 "dns": { |
| 14 "dependencies": ["permission:dns"], | 23 "dependencies": ["permission:dns"], |
| 15 "contexts": ["blessed_extension"] | 24 "contexts": ["blessed_extension"] |
| 16 }, | 25 }, |
| 17 "socket": { | 26 "socket": { |
| 18 "dependencies": ["permission:socket"], | 27 "dependencies": ["permission:socket"], |
| 19 "contexts": ["blessed_extension"] | 28 "contexts": ["blessed_extension"] |
| 20 }, | 29 }, |
| 21 "sockets.tcp": { | 30 "sockets.tcp": { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 "dependencies": ["permission:storage"], | 43 "dependencies": ["permission:storage"], |
| 35 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 44 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
| 36 }, | 45 }, |
| 37 "test": { | 46 "test": { |
| 38 "internal": true, | 47 "internal": true, |
| 39 "channel": "stable", | 48 "channel": "stable", |
| 40 "extension_types": "all", | 49 "extension_types": "all", |
| 41 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 50 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
| 42 } | 51 } |
| 43 } | 52 } |
| OLD | NEW |