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. |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 }, | 356 }, |
| 357 "extension.onRequest": { | 357 "extension.onRequest": { |
| 358 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 358 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
| 359 }, | 359 }, |
| 360 "extension.sendNativeMessage": { | 360 "extension.sendNativeMessage": { |
| 361 "dependencies": ["permission:nativeMessaging"] | 361 "dependencies": ["permission:nativeMessaging"] |
| 362 }, | 362 }, |
| 363 "extension.sendRequest": { | 363 "extension.sendRequest": { |
| 364 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] | 364 "contexts": ["blessed_extension", "unblessed_extension", "content_script"] |
| 365 }, | 365 }, |
| 366 "extensionOptionsInternal": { | 366 "extensionOptionsInternal": [{ |
| 367 "internal": true, | 367 "internal": true, |
| 368 "contexts": ["blessed_extension"], | 368 "contexts": ["blessed_extension"], |
| 369 "dependencies": ["permission:embeddedExtensionOptions"] | 369 "dependencies": ["permission:embeddedExtensionOptions"] |
| 370 }, | 370 }, { |
| 371 "internal": true, | |
| 372 "channel": "trunk", | |
| 373 "contexts": ["webui"], | |
| 374 "matches": ["chrome://*/*"] | |
|
not at google - send to devlin
2014/08/07 23:06:02
can you make this more specific than all of chrome
ericzeng
2014/08/08 00:23:46
Done, but I'm not sure why this combination in par
not at google - send to devlin
2014/08/08 14:08:15
- the second rule chrome://chrome/extensions shoul
ericzeng
2014/08/08 21:35:51
I think I fixed it actually, it was easier to find
| |
| 375 }], | |
| 371 // This is not a real API, only here for documentation purposes. | 376 // This is not a real API, only here for documentation purposes. |
| 372 // See http://crbug.com/275944 for background. | 377 // See http://crbug.com/275944 for background. |
| 373 "extensionsManifestTypes": { | 378 "extensionsManifestTypes": { |
| 374 "internal": true, | 379 "internal": true, |
| 375 "channel": "stable", | 380 "channel": "stable", |
| 376 "contexts": ["blessed_extension"] | 381 "contexts": ["blessed_extension"] |
| 377 }, | 382 }, |
| 378 "feedbackPrivate": { | 383 "feedbackPrivate": { |
| 379 "dependencies": ["permission:feedbackPrivate"], | 384 "dependencies": ["permission:feedbackPrivate"], |
| 380 "contexts": ["blessed_extension"] | 385 "contexts": ["blessed_extension"] |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 434 "guestViewInternal": [{ | 439 "guestViewInternal": [{ |
| 435 "internal": true, | 440 "internal": true, |
| 436 "channel": "stable", | 441 "channel": "stable", |
| 437 "contexts": ["blessed_extension"] | 442 "contexts": ["blessed_extension"] |
| 438 }, { | 443 }, { |
| 439 // Component extensions can use the guestViewInternal API from iframes. | 444 // Component extensions can use the guestViewInternal API from iframes. |
| 440 "location": "component", | 445 "location": "component", |
| 441 "internal": true, | 446 "internal": true, |
| 442 "dependencies": ["permission:webview"], | 447 "dependencies": ["permission:webview"], |
| 443 "contexts": ["unblessed_extension"] | 448 "contexts": ["unblessed_extension"] |
| 449 }, { | |
| 450 "internal": true, | |
| 451 "channel": "trunk", | |
| 452 "contexts": ["webui"], | |
| 453 "matches": ["chrome://*/*"] | |
| 444 }], | 454 }], |
|
not at google - send to devlin
2014/08/07 23:06:02
ideally this API rule would actually be:
"guestVi
ericzeng
2014/08/08 00:23:46
Acknowledged.
| |
| 445 "hangoutsPrivate": { | 455 "hangoutsPrivate": { |
| 446 "channel": "stable", | 456 "channel": "stable", |
| 447 "contexts": ["blessed_extension"], | 457 "contexts": ["blessed_extension"], |
| 448 "whitelist": [ | 458 "whitelist": [ |
| 449 // http://crbug.com/309737 | 459 // http://crbug.com/309737 |
| 450 "nckgahadagoaajjgafhacjanaoiihapd", | 460 "nckgahadagoaajjgafhacjanaoiihapd", |
| 451 "ljclpkphhpbpinifbeabbhlfddcpfdde", | 461 "ljclpkphhpbpinifbeabbhlfddcpfdde", |
| 452 "ppleadejekpmccmnpjdimmlfljlkdfej", | 462 "ppleadejekpmccmnpjdimmlfljlkdfej", |
| 453 "eggnbpckecmjlblplehfpjjdhhidfdoj", | 463 "eggnbpckecmjlblplehfpjjdhhidfdoj", |
| 454 "jfjjdfefebklmdbmenmlehlopoocnoeh", | 464 "jfjjdfefebklmdbmenmlehlopoocnoeh", |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 806 "internal": true, | 816 "internal": true, |
| 807 "channel": "stable", | 817 "channel": "stable", |
| 808 "dependencies": ["permission:webview"], | 818 "dependencies": ["permission:webview"], |
| 809 "contexts": ["blessed_extension"] | 819 "contexts": ["blessed_extension"] |
| 810 }, | 820 }, |
| 811 "windows": { | 821 "windows": { |
| 812 "dependencies": ["api:tabs"], | 822 "dependencies": ["api:tabs"], |
| 813 "contexts": ["blessed_extension"] | 823 "contexts": ["blessed_extension"] |
| 814 } | 824 } |
| 815 } | 825 } |
| OLD | NEW |