Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: chrome/common/extensions/docs/contentSettings.html

Issue 8352042: Update contentSettings extension API docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix link Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> 12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css">
13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> 13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print">
14 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla te_compiled.js"> 14 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla te_compiled.js">
15 </script> 15 </script>
16 <script type="text/javascript" src="js/api_page_generator.js"></script> 16 <script type="text/javascript" src="js/api_page_generator.js"></script>
17 <script type="text/javascript" src="js/bootstrap.js"></script> 17 <script type="text/javascript" src="js/bootstrap.js"></script>
18 <script type="text/javascript" src="js/sidebar.js"></script> 18 <script type="text/javascript" src="js/sidebar.js"></script>
19 <title>chrome.contentSettings - Google Chrome Extensions - Google Code</title> </head> 19 <title>Content Settings - Google Chrome Extensions - Google Code</title></head >
20 <body> <div id="gc-container" class="labs"> 20 <body> <div id="gc-container" class="labs">
21 <div id="devModeWarning"> 21 <div id="devModeWarning">
22 You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with -- allow-file-access-from-files. 22 You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with -- allow-file-access-from-files.
23 </div> 23 </div>
24 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> 24 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION -->
25 <!-- In particular, sub-templates that recurse, must be used by allowing 25 <!-- In particular, sub-templates that recurse, must be used by allowing
26 jstemplate to make a copy of the template in this section which 26 jstemplate to make a copy of the template in this section which
27 are not operated on by way of the jsskip="true" --> 27 are not operated on by way of the jsskip="true" -->
28 <div style="display:none"> 28 <div style="display:none">
29 29
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 </ul> 244 </ul>
245 </li> 245 </li>
246 </ul> 246 </ul>
247 </div> 247 </div>
248 <script> 248 <script>
249 initToggles(); 249 initToggles();
250 </script> 250 </script>
251 251
252 <div class="g-unit" id="gc-pagecontent"> 252 <div class="g-unit" id="gc-pagecontent">
253 <div id="pageTitle"> 253 <div id="pageTitle">
254 <h1 class="page_title">chrome.contentSettings</h1> 254 <h1 class="page_title">Content Settings</h1>
255 </div> 255 </div>
256 <!-- TABLE OF CONTENTS --> 256 <!-- TABLE OF CONTENTS -->
257 <div id="toc"> 257 <div id="toc">
258 <h2>Contents</h2> 258 <h2>Contents</h2>
259 <ol> 259 <ol>
260 <li style="display: none; "> 260 <li>
261 <a>h2Name</a> 261 <a href="#manifest">Manifest</a>
262 <ol> 262 <ol>
263 <li> 263 <li style="display: none; ">
264 <a>h3Name</a> 264 <a>h3Name</a>
265 </li> 265 </li>
266 </ol> 266 </ol>
267 </li><li>
268 <a href="#patterns">Content setting patterns</a>
269 <ol>
270 <li>
271 <a href="#pattern-precedence">Pattern precedence</a>
272 </li>
273 </ol>
274 </li><li>
275 <a href="#primary-secondary">Primary and secondary patterns</a>
276 <ol>
277 <li style="display: none; ">
278 <a>h3Name</a>
279 </li>
280 </ol>
281 </li><li>
282 <a href="#resource-identifiers">Resource identifiers</a>
283 <ol>
284 <li style="display: none; ">
285 <a>h3Name</a>
286 </li>
287 </ol>
288 </li><li>
289 <a href="#examples">Examples</a>
290 <ol>
291 <li style="display: none; ">
292 <a>h3Name</a>
293 </li>
294 </ol>
267 </li> 295 </li>
268 <li> 296 <li>
269 <a href="#apiReference">API reference: chrome.contentSettings</a > 297 <a href="#apiReference">API reference: chrome.contentSettings</a >
270 <ol> 298 <ol>
271 <li> 299 <li>
272 <a href="#properties">Properties</a> 300 <a href="#properties">Properties</a>
273 <ol> 301 <ol>
274 <li> 302 <li>
275 <a href="#property-cookies">cookies</a> 303 <a href="#property-cookies">cookies</a>
276 </li><li> 304 </li><li>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 </ol> 345 </ol>
318 </div> 346 </div>
319 <!-- /TABLE OF CONTENTS --> 347 <!-- /TABLE OF CONTENTS -->
320 348
321 <!-- Standard content lead-in for experimental API pages --> 349 <!-- Standard content lead-in for experimental API pages -->
322 <p id="classSummary" style="display: none; "> 350 <p id="classSummary" style="display: none; ">
323 For information on how to use experimental APIs, see the <a href="expe rimental.html">chrome.experimental.* APIs</a> page. 351 For information on how to use experimental APIs, see the <a href="expe rimental.html">chrome.experimental.* APIs</a> page.
324 </p> 352 </p>
325 353
326 <!-- STATIC CONTENT PLACEHOLDER --> 354 <!-- STATIC CONTENT PLACEHOLDER -->
327 <div id="static"></div> 355 <div id="static"><div id="pageData-name" class="pageData">Content Settin gs</div>
356
357 <!-- BEGIN AUTHORED CONTENT -->
358 <p>
359 The content settings module allows you to change settings that control whether
360 websites can use features such as cookies, JavaScript, and plug-ins.
361 More generally speaking, content settings allow you to customize Chrome's
362 behavior on a per-site basis instead of globally.</p>
363 <p>
364 </p>
365
366 <h2 id="manifest">Manifest</h2>
367 <p>You must declare the "contentSettings" permission
368 in your extension's manifest to use the API.
369 For example:</p>
370 <pre>{
371 "name": "My extension",
372 ...
373 <b>"permissions": [
374 "contentSettings"
375 ]</b>,
376 ...
377 }</pre>
378
379
380 <h2 id="patterns">Content setting patterns</h2>
381 <p>
382 You can use patterns to specify the websites that each content setting affects.
383 For example, <code>http://*.youtube.com/*</code> specifies youtube.com and all
384 of its subdomains. The syntax for content setting patterns is the same as for
385 <a href="match_patterns.html">match patterns</a>, with a few differences:
386 </p><ul><li>For <code>http</code>,
387 <code>https</code>, and <code>ftp</code> URLs, the path must be a wildcard
388 (<code>/*</code>). For <code>file</code> URLs, the path must be completely
389 specified and <strong>must not</strong> contain wildcards.</li>
390 <li>In contrast to match patterns, content setting patterns can specify a port
391 number. If a port number is specified, the pattern only matches websites with
392 that port. If no port number is specified, the pattern matches all ports.
393 </li>
394 </ul>
395 <p></p>
396
397 <h3 id="pattern-precedence">Pattern precedence</h3>
398 <p>
399 When more than one content setting rule applies for a given site, the rule with
400 the more specific pattern takes precedence.
401 </p>
402 <p>For example, the following patterns are ordered by precedence:</p>
403 <ol>
404 <li><code>http://www.example.com/*</code></li>
405 <li><code>http://*.example.com/*</code> (matching
406 example.com and all subdomains)</li>
407 <li><code>&lt;all_urls&gt;</code> (matching every URL)</li>
408 </ol>
409 <p>
410 Three kinds of wildcards affect how specific a pattern is:
411 </p>
412 <ul>
413 <li>Wildcards in the port (for example
414 <code>http://www.example.com:*/*</code>)</li>
415 <li>Wildcards in the scheme (for example
416 <code>*://www.example.com:123/*</code>)</li>
417 <li>Wildcards in the hostname (for example
418 <code>http://*.example.com:123/*</code>)</li>
419 </ul>
420 <p>
421 If a pattern is more specific than another pattern in one part but less specific
422 in another part, the different parts are checked in the following order:
423 hostname, scheme, port. For example, the following patterns are ordered by
424 precedence:</p>
425 <ol>
426 <li><code>http://www.example.com:*/*</code><br>
427 Specifies the hostname and scheme.</li>
428 <li><code>*:/www.example.com:123/*</code><br>
429 Not as high, because although it specifies the hostname, it doesn't specify
430 the scheme.</li>
431 <li><code>http://*.example.com:123/*</code><br>
432 Lower because although it specifies the port and scheme, it has a wildcard
433 in the hostname.</li>
434 </ol>
435
436 <h2 id="primary-secondary">Primary and secondary patterns</h2>
437 <p>
438 The URL taken into account when deciding which content setting to apply depends
439 on the content type. For example, for
440 <a href="#property-notifications">notifications</a> settings are
441 based on the URL shown in the omnibox. This URL is called the "primary" URL.</p>
442 <p>
443 Some content types can take additional URLs into account. For example,
444 whether a site is allowed to set a
445 <a href="#property-cookies">cookie</a> is decided based on the URL
446 of the HTTP request (which is the primary URL in this case) as well as the URL
447 shown in the omnibox (which is called the "secondary" URL).
448 </p>
449 <p>
450 If multiple rules have primary and secondary patterns, the rule with the more
451 specific primary pattern takes precedence. If there multiple rules have the same
452 primary pattern, the rule with the more specific secondary pattern takes
453 precedence. For example, the following list of primary/secondary pattern pairs
454 is ordered by precedence:</p>
455 <table>
456 <tbody><tr><th>Precedence</th><th>Primary pattern</th><th>Secondary pattern</th>
457 </tr><tr>
458 <td>1</td>
459 <td><code>http://www.moose.com/*</code>, </td>
460 <td><code>http://www.wombat.com/*</code></td>
461 </tr><tr>
462 <td>2</td>
463 <td><code>http://www.moose.com/*</code>, </td>
464 <td><code>&lt;all_urls&gt;</code></td>
465 </tr><tr>
466 <td>3</td>
467 <td><code>&lt;all_urls&gt;</code>, </td>
468 <td><code>http://www.wombat.com/*</code></td>
469 </tr><tr>
470 <td>4</td>
471 <td><code>&lt;all_urls&gt;</code>, </td>
472 <td><code>&lt;all_urls&gt;</code></td>
473 </tr>
474 </tbody></table>
475
476 <h2 id="resource-identifiers">Resource identifiers</h2>
477 <p>
478 Resource identifiers allow you to specify content settings for specific
479 subtypes of a content type. Currently, the only content type that supports
480 resource identifiers is <a href="#property-plugins"><code>plugins</code></a>,
481 where a resource identifier identifies a specific plug-in. When applying content
482 settings, first the settings for the specific plug-in are checked. If there are
483 no settings found for the specific plug-in, the general content settings for
484 plug-ins are checked.
485 </p>
486 <p>
487 For example, if a content setting rule has the resource identifier
488 <code>adobe-flash-player</code> and the pattern <code>&lt;all_urls&gt;</code>,
489 it takes precedence over a rule without a resource identifier and the pattern
490 <code>http://www.example.com/*</code>, even if that pattern is more specific.
491 </p>
492 <p>
493 You can get a list of resource identifiers for a content type by calling the
494 <a href="contentSettings.html#method-ContentSetting-getResourceIdentifiers">
495 <code>getResourceIdentifiers()</code></a> method. The returned list
496 can change with the set of installed plug-ins on the user's machine, but Chrome
497 tries to keep the identifiers stable across plug-in updates.
498 </p>
499
500 <h2 id="examples">Examples</h2>
501
502 <p>
503 You can find samples of this API on the
504 <a href="samples.html#contentSettings">sample page</a>.
505 </p>
506
507 <!-- END AUTHORED CONTENT -->
508 </div>
328 509
329 <!-- API PAGE --> 510 <!-- API PAGE -->
330 <div class="apiPage"> 511 <div class="apiPage">
331 <a name="apiReference"></a> 512 <a name="apiReference"></a>
332 <h2>API reference: chrome.contentSettings</h2> 513 <h2>API reference: chrome.contentSettings</h2>
333 514
334 <!-- PROPERTIES --> 515 <!-- PROPERTIES -->
335 <div class="apiGroup"> 516 <div class="apiGroup">
336 <a name="properties"></a> 517 <a name="properties"></a>
337 <h3 id="properties">Properties</h3> 518 <h3 id="properties">Properties</h3>
(...skipping 28 matching lines...) Expand all
366 </span> 547 </span>
367 </span> 548 </span>
368 ) 549 )
369 </div> 550 </div>
370 551
371 </em> 552 </em>
372 </dt> 553 </dt>
373 <dd class="todo" style="display: none; "> 554 <dd class="todo" style="display: none; ">
374 Undocumented. 555 Undocumented.
375 </dd> 556 </dd>
376 <dd>Whether to allow cookies and other local data to be set by website s. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Block cookie s,<br><var>session_only</var>: Accept cookies only for the current session. Defa ult is <var>allow</var>.<br>The primary URL is the URL representing the cookie o rigin. The secondary URL is the URL of the top-level frame.</dd> 557 <dd>Whether to allow cookies and other local data to be set by website s. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Block cookie s,<br><var>session_only</var>: Accept cookies only for the current session. <br> Default is <var>allow</var>.<br>The primary URL is the URL representing the cook ie origin. The secondary URL is the URL of the top-level frame.</dd>
377 <dd style="display: none; "> 558 <dd style="display: none; ">
378 This parameter was added in version 559 This parameter was added in version
379 <b><span></span></b>. 560 <b><span></span></b>.
380 You must omit this parameter in earlier versions, 561 You must omit this parameter in earlier versions,
381 and you may omit it in any version. If you require this 562 and you may omit it in any version. If you require this
382 parameter, the manifest key 563 parameter, the manifest key
383 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 564 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
384 can ensure that your extension won't be run in an earlier browser ve rsion. 565 can ensure that your extension won't be run in an earlier browser ve rsion.
385 </dd> 566 </dd>
386 567
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 </span> 621 </span>
441 </span> 622 </span>
442 ) 623 )
443 </div> 624 </div>
444 625
445 </em> 626 </em>
446 </dt> 627 </dt>
447 <dd class="todo" style="display: none; "> 628 <dd class="todo" style="display: none; ">
448 Undocumented. 629 Undocumented.
449 </dd> 630 </dd>
450 <dd>Whether to show images. One of<br><var>allow</var>: Show images,<b r><var>block</var>: Don't show images. Default is <var>allow</var>.<br>The prima ry URL is the main-frame URL. The secondary URL is not used.</dd> 631 <dd>Whether to show images. One of<br><var>allow</var>: Show images,<b r><var>block</var>: Don't show images. <br>Default is <var>allow</var>.<br>The p rimary URL is the main-frame URL. The secondary URL is not used.</dd>
451 <dd style="display: none; "> 632 <dd style="display: none; ">
452 This parameter was added in version 633 This parameter was added in version
453 <b><span></span></b>. 634 <b><span></span></b>.
454 You must omit this parameter in earlier versions, 635 You must omit this parameter in earlier versions,
455 and you may omit it in any version. If you require this 636 and you may omit it in any version. If you require this
456 parameter, the manifest key 637 parameter, the manifest key
457 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 638 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
458 can ensure that your extension won't be run in an earlier browser ve rsion. 639 can ensure that your extension won't be run in an earlier browser ve rsion.
459 </dd> 640 </dd>
460 641
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 </span> 695 </span>
515 </span> 696 </span>
516 ) 697 )
517 </div> 698 </div>
518 699
519 </em> 700 </em>
520 </dt> 701 </dt>
521 <dd class="todo" style="display: none; "> 702 <dd class="todo" style="display: none; ">
522 Undocumented. 703 Undocumented.
523 </dd> 704 </dd>
524 <dd>Whether to run Javascript. One of<br><var>allow</var>: Run Javascr ipt,<br><var>block</var>: Don't run Javascript. Default is <var>allow</var>.<br> The primary URL is the main-frame URL. The secondary URL is not used.</dd> 705 <dd>Whether to run JavaScript. One of<br><var>allow</var>: Run JavaScr ipt,<br><var>block</var>: Don't run JavaScript. <br>Default is <var>allow</var>. <br>The primary URL is the main-frame URL. The secondary URL is not used.</dd>
525 <dd style="display: none; "> 706 <dd style="display: none; ">
526 This parameter was added in version 707 This parameter was added in version
527 <b><span></span></b>. 708 <b><span></span></b>.
528 You must omit this parameter in earlier versions, 709 You must omit this parameter in earlier versions,
529 and you may omit it in any version. If you require this 710 and you may omit it in any version. If you require this
530 parameter, the manifest key 711 parameter, the manifest key
531 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 712 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
532 can ensure that your extension won't be run in an earlier browser ve rsion. 713 can ensure that your extension won't be run in an earlier browser ve rsion.
533 </dd> 714 </dd>
534 715
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 </span> 769 </span>
589 </span> 770 </span>
590 ) 771 )
591 </div> 772 </div>
592 773
593 </em> 774 </em>
594 </dt> 775 </dt>
595 <dd class="todo" style="display: none; "> 776 <dd class="todo" style="display: none; ">
596 Undocumented. 777 Undocumented.
597 </dd> 778 </dd>
598 <dd>Whether to run plug-ins. One of<br><var>allow</var>: Run plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically. Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary URL i s not used.</dd> 779 <dd>Whether to run plug-ins. One of<br><var>allow</var>: Run plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically. <br>Defaul t is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary U RL is not used.</dd>
599 <dd style="display: none; "> 780 <dd style="display: none; ">
600 This parameter was added in version 781 This parameter was added in version
601 <b><span></span></b>. 782 <b><span></span></b>.
602 You must omit this parameter in earlier versions, 783 You must omit this parameter in earlier versions,
603 and you may omit it in any version. If you require this 784 and you may omit it in any version. If you require this
604 parameter, the manifest key 785 parameter, the manifest key
605 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 786 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
606 can ensure that your extension won't be run in an earlier browser ve rsion. 787 can ensure that your extension won't be run in an earlier browser ve rsion.
607 </dd> 788 </dd>
608 789
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 </span> 843 </span>
663 </span> 844 </span>
664 ) 845 )
665 </div> 846 </div>
666 847
667 </em> 848 </em>
668 </dt> 849 </dt>
669 <dd class="todo" style="display: none; "> 850 <dd class="todo" style="display: none; ">
670 Undocumented. 851 Undocumented.
671 </dd> 852 </dd>
672 <dd>Whether to allow sites to show pop-ups. One of<br><var>allow</var> : Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites to show po p-ups. Default is <var>block</var>.<br>The primary URL is the main-frame URL. Th e secondary URL is not used.</dd> 853 <dd>Whether to allow sites to show pop-ups. One of<br><var>allow</var> : Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites to show po p-ups. <br>Default is <var>block</var>.<br>The primary URL is the main-frame URL . The secondary URL is not used.</dd>
673 <dd style="display: none; "> 854 <dd style="display: none; ">
674 This parameter was added in version 855 This parameter was added in version
675 <b><span></span></b>. 856 <b><span></span></b>.
676 You must omit this parameter in earlier versions, 857 You must omit this parameter in earlier versions,
677 and you may omit it in any version. If you require this 858 and you may omit it in any version. If you require this
678 parameter, the manifest key 859 parameter, the manifest key
679 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 860 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
680 can ensure that your extension won't be run in an earlier browser ve rsion. 861 can ensure that your extension won't be run in an earlier browser ve rsion.
681 </dd> 862 </dd>
682 863
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 </span> 917 </span>
737 </span> 918 </span>
738 ) 919 )
739 </div> 920 </div>
740 921
741 </em> 922 </em>
742 </dt> 923 </dt>
743 <dd class="todo" style="display: none; "> 924 <dd class="todo" style="display: none; ">
744 Undocumented. 925 Undocumented.
745 </dd> 926 </dd>
746 <dd>Whether to allow sites to show desktop notifications. One of<br><v ar>allow</var>: Allow sites to show desktop notifications,<br><var>block</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: Ask when a s ite wants to show desktop notifications. Default is <var>ask</var>.<br>The prima ry URL is the main-frame URL. The secondary URL is not used.</dd> 927 <dd>Whether to allow sites to show desktop notifications. One of<br><v ar>allow</var>: Allow sites to show desktop notifications,<br><var>block</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: Ask when a s ite wants to show desktop notifications. <br>Default is <var>ask</var>.<br>The p rimary URL is the main-frame URL. The secondary URL is not used.</dd>
747 <dd style="display: none; "> 928 <dd style="display: none; ">
748 This parameter was added in version 929 This parameter was added in version
749 <b><span></span></b>. 930 <b><span></span></b>.
750 You must omit this parameter in earlier versions, 931 You must omit this parameter in earlier versions,
751 and you may omit it in any version. If you require this 932 and you may omit it in any version. If you require this
752 parameter, the manifest key 933 parameter, the manifest key
753 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 934 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
754 can ensure that your extension won't be run in an earlier browser ve rsion. 935 can ensure that your extension won't be run in an earlier browser ve rsion.
755 </dd> 936 </dd>
756 937
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 </span> 1130 </span>
950 </span> 1131 </span>
951 ) 1132 )
952 </div> 1133 </div>
953 1134
954 </em> 1135 </em>
955 </dt> 1136 </dt>
956 <dd class="todo" style="display: none; "> 1137 <dd class="todo" style="display: none; ">
957 Undocumented. 1138 Undocumented.
958 </dd> 1139 </dd>
959 <dd>The only content type using resource identifiers is <var>plugins</ var>. Using a resource identifier allows an extension to specify content setting s applying only to a specific plug-in. If no rule for the specific plug-in is fo und, the rules without resource identifiers are applied.</dd> 1140 <dd>The only content type using resource identifiers is <a href="conte ntSettings.html#property-plugins"><var>plugins</var></a>. For more information, see <a href="contentSettings.html#resource-identifiers">Resource Identifiers</a> .</dd>
960 <dd style="display: none; "> 1141 <dd style="display: none; ">
961 This parameter was added in version 1142 This parameter was added in version
962 <b><span></span></b>. 1143 <b><span></span></b>.
963 You must omit this parameter in earlier versions, 1144 You must omit this parameter in earlier versions,
964 and you may omit it in any version. If you require this 1145 and you may omit it in any version. If you require this
965 parameter, the manifest key 1146 parameter, the manifest key
966 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 1147 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
967 can ensure that your extension won't be run in an earlier browser ve rsion. 1148 can ensure that your extension won't be run in an earlier browser ve rsion.
968 </dd> 1149 </dd>
969 1150
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 </span> 2539 </span>
2359 </span> 2540 </span>
2360 ) 2541 )
2361 </div> 2542 </div>
2362 2543
2363 </em> 2544 </em>
2364 </dt> 2545 </dt>
2365 <dd class="todo" style="display: none; "> 2546 <dd class="todo" style="display: none; ">
2366 Undocumented. 2547 Undocumented.
2367 </dd> 2548 </dd>
2368 <dd>The pattern for the primary URL. For details on the format of a pa ttern, see <a href="match_patterns.html">Match Patterns</a>.</dd> 2549 <dd>The pattern for the primary URL. For details on the format of a pa ttern, see <a href="contentSettings.html#patterns">Content Setting Patterns</a>. </dd>
2369 <dd style="display: none; "> 2550 <dd style="display: none; ">
2370 This parameter was added in version 2551 This parameter was added in version
2371 <b><span></span></b>. 2552 <b><span></span></b>.
2372 You must omit this parameter in earlier versions, 2553 You must omit this parameter in earlier versions,
2373 and you may omit it in any version. If you require this 2554 and you may omit it in any version. If you require this
2374 parameter, the manifest key 2555 parameter, the manifest key
2375 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 2556 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
2376 can ensure that your extension won't be run in an earlier browser ve rsion. 2557 can ensure that your extension won't be run in an earlier browser ve rsion.
2377 </dd> 2558 </dd>
2378 2559
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 </span> 2607 </span>
2427 </span> 2608 </span>
2428 ) 2609 )
2429 </div> 2610 </div>
2430 2611
2431 </em> 2612 </em>
2432 </dt> 2613 </dt>
2433 <dd class="todo" style="display: none; "> 2614 <dd class="todo" style="display: none; ">
2434 Undocumented. 2615 Undocumented.
2435 </dd> 2616 </dd>
2436 <dd>The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href="match_patterns.html">Match Patterns</a>.</dd> 2617 <dd>The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href="contentSettings.html#patter ns">Content Setting Patterns</a>.</dd>
2437 <dd style="display: none; "> 2618 <dd style="display: none; ">
2438 This parameter was added in version 2619 This parameter was added in version
2439 <b><span></span></b>. 2620 <b><span></span></b>.
2440 You must omit this parameter in earlier versions, 2621 You must omit this parameter in earlier versions,
2441 and you may omit it in any version. If you require this 2622 and you may omit it in any version. If you require this
2442 parameter, the manifest key 2623 parameter, the manifest key
2443 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> 2624 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a>
2444 can ensure that your extension won't be run in an earlier browser ve rsion. 2625 can ensure that your extension won't be run in an earlier browser ve rsion.
2445 </dd> 2626 </dd>
2446 2627
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2864 _uff=0; 3045 _uff=0;
2865 urchinTracker(); 3046 urchinTracker();
2866 } 3047 }
2867 catch(e) {/* urchinTracker not available. */} 3048 catch(e) {/* urchinTracker not available. */}
2868 </script> 3049 </script>
2869 <!-- end analytics --> 3050 <!-- end analytics -->
2870 </div> 3051 </div>
2871 </div> <!-- /gc-footer --> 3052 </div> <!-- /gc-footer -->
2872 </div> <!-- /gc-container --> 3053 </div> <!-- /gc-container -->
2873 </body></html> 3054 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/common/extensions/docs/experimental.contentSettings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698