Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome. | 5 // This features file defines extension APIs implemented under src/chrome. |
| 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 "accessibilityFeatures": [{ | 22 "accessibilityFeatures": [{ |
| 14 "platforms": ["chromeos"], | 23 "platforms": ["chromeos"], |
| 15 "dependencies": ["permission:accessibilityFeatures.modify"], | 24 "dependencies": ["permission:accessibilityFeatures.modify"], |
| 16 "contexts": ["blessed_extension"] | 25 "contexts": ["blessed_extension"] |
| 17 }, { | 26 }, { |
| 18 "platforms": ["chromeos"], | 27 "platforms": ["chromeos"], |
| 19 "dependencies": ["permission:accessibilityFeatures.read"], | 28 "dependencies": ["permission:accessibilityFeatures.read"], |
| 20 "contexts": ["blessed_extension"] | 29 "contexts": ["blessed_extension"] |
| 21 }], | 30 }], |
| 22 "activityLogPrivate": { | 31 "activityLogPrivate": { |
| 23 "dependencies": ["permission:activityLogPrivate"], | 32 "dependencies": ["permission:activityLogPrivate"], |
| 24 "contexts": ["blessed_extension"] | 33 "contexts": ["blessed_extension"] |
| 25 }, | 34 }, |
| 26 "adview": { | 35 "adview": { |
| 27 "dependencies": ["permission:adview"], | 36 "dependencies": ["permission:adview"], |
| 28 "contexts": ["blessed_extension"] | 37 "contexts": ["blessed_extension"] |
| 29 }, | 38 }, |
| 30 "alarms": { | 39 "alarms": { |
| 31 "dependencies": ["permission:alarms"], | 40 "dependencies": ["permission:alarms"], |
| 32 "contexts": ["blessed_extension"] | 41 "contexts": ["blessed_extension"] |
| 33 }, | 42 }, |
| 34 "app": { | 43 "app": { |
| 44 "blacklist": [ | |
|
not at google - send to devlin
2014/05/01 20:55:06
thank you!
| |
| 45 "2FC374607C2DF285634B67C64A2E356C607091C3", // Quickoffice | |
| 46 "3727DD3E564B6055387425027AD74C58784ACC15", // Quickoffice internal | |
| 47 "12E618C3C6E97495AAECF2AC12DEB082353241C6" // QO component extension | |
| 48 ], | |
| 35 "channel": "stable", | 49 "channel": "stable", |
| 36 "extension_types": ["hosted_app", "extension", "legacy_packaged_app"], | 50 "extension_types": ["hosted_app", "extension", "legacy_packaged_app"], |
| 37 "contexts": [ | 51 "contexts": [ |
| 38 "blessed_extension", | 52 "blessed_extension", |
| 39 "unblessed_extension", | 53 "unblessed_extension", |
| 40 "content_script", | 54 "content_script", |
| 41 "web_page", | 55 "web_page", |
| 42 "blessed_web_page" | 56 "blessed_web_page" |
| 43 ], | 57 ], |
| 44 "matches": [ | 58 "matches": [ |
| 45 "http://*/*", "https://*/*", "chrome-extension://*/*", "file://*/*" | 59 "http://*/*", "https://*/*", "chrome-extension://*/*", "file://*/*" |
| 46 ] | 60 ] |
| 47 }, | 61 }, |
| 48 "app.runtime": { | 62 "app.runtime": [{ |
| 49 "channel": "stable", | 63 "channel": "stable", |
| 50 "contexts": ["blessed_extension"], | 64 "contexts": ["blessed_extension"], |
| 51 "extension_types": ["platform_app"], | 65 "extension_types": ["platform_app"], |
| 52 "noparent": true | 66 "noparent": true |
| 53 }, | 67 }, { |
| 68 "channel": "stable", | |
| 69 "contexts": ["blessed_extension"], | |
| 70 "extension_types": ["extension"], | |
| 71 "noparent": true, | |
| 72 "whitelist": [ | |
| 73 "2FC374607C2DF285634B67C64A2E356C607091C3", // Quickoffice | |
| 74 "3727DD3E564B6055387425027AD74C58784ACC15", // Quickoffice internal | |
| 75 "12E618C3C6E97495AAECF2AC12DEB082353241C6" // QO component extension | |
| 76 ] | |
| 77 }], | |
| 54 "app.window": { | 78 "app.window": { |
| 55 "channel": "stable", | 79 "channel": "stable", |
| 56 "contexts": ["blessed_extension"], | 80 "contexts": ["blessed_extension"], |
| 57 "extension_types": ["platform_app"], | 81 "extension_types": ["platform_app"], |
| 58 "noparent": true | 82 "noparent": true |
| 59 }, | 83 }, |
| 60 "app.currentWindowInternal": { | 84 "app.currentWindowInternal": { |
| 61 "noparent": true, | 85 "noparent": true, |
| 62 "internal": true, | 86 "internal": true, |
| 63 "channel": "stable", | 87 "channel": "stable", |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 "internal": true, | 818 "internal": true, |
| 795 "channel": "stable", | 819 "channel": "stable", |
| 796 "dependencies": ["permission:webview"], | 820 "dependencies": ["permission:webview"], |
| 797 "contexts": ["blessed_extension"] | 821 "contexts": ["blessed_extension"] |
| 798 }, | 822 }, |
| 799 "windows": { | 823 "windows": { |
| 800 "dependencies": ["api:tabs"], | 824 "dependencies": ["api:tabs"], |
| 801 "contexts": ["blessed_extension"] | 825 "contexts": ["blessed_extension"] |
| 802 } | 826 } |
| 803 } | 827 } |
| OLD | NEW |