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

Unified Diff: chrome/common/extensions/docs/experimental.contentSettings.html

Issue 7253041: Use primary/secondary for URLs and patterns everywhere in the content settings extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/experimental.contentSettings.html
diff --git a/chrome/common/extensions/docs/experimental.contentSettings.html b/chrome/common/extensions/docs/experimental.contentSettings.html
index fcb153b1279e897a48b5c93475a0f1346ff4779d..b58ea1c8df2406033a9ff85b04b282280990eee4 100644
--- a/chrome/common/extensions/docs/experimental.contentSettings.html
+++ b/chrome/common/extensions/docs/experimental.contentSettings.html
@@ -654,7 +654,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>Whether to allow cookies and other local data to be set by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Block cookies,<br><var>session_only</var>: Accept cookies only for the current session. Default is <var>allow</var>.</dd>
+ <dd>Whether to allow cookies and other local data to be set by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Block cookies,<br><var>session_only</var>: Accept cookies only for the current session. Default is <var>allow</var>.<br>The primary URL is the URL representing the cookie origin. The secondary URL is the URL of the top-level frame.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -728,7 +728,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>Whether to show images. One of<br><var>allow</var>: Show images,<br><var>block</var>: Don't show images. Default is <var>allow</var>.</dd>
+ <dd>Whether to show images. One of<br><var>allow</var>: Show images,<br><var>block</var>: Don't show images. Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -802,7 +802,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>Whether to run Javascript. One of<br><var>allow</var>: Run Javascript,<br><var>block</var>: Don't run Javascript. Default is <var>allow</var>.</dd>
+ <dd>Whether to run Javascript. One of<br><var>allow</var>: Run Javascript,<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>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -876,7 +876,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <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>.</dd>
+ <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 is not used.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -950,7 +950,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <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 pop-ups. Default is <var>block</var>.</dd>
+ <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 pop-ups. Default is <var>block</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -1024,7 +1024,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>Whether to allow sites to show desktop notifications. One of<br><var>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 site wants to show desktop notifications. Default is <var>ask</var>.</dd>
+ <dd>Whether to allow sites to show desktop notifications. One of<br><var>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 site wants to show desktop notifications. Default is <var>ask</var>.<br>The primary URL is the main-frame URL. The secondary URL is not used.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -2149,7 +2149,7 @@
<div>
<div>
<dt>
- <var>embeddedUrl</var>
+ <var>primaryUrl</var>
<em>
<!-- TYPE -->
@@ -2177,7 +2177,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>The URL of the frame or object for which the content settings should be retrieved.</dd>
+ <dd>The primary URL for which the content setting should be retrieved. Note that the meaning of a primary URL depends on the content type.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -2217,13 +2217,13 @@
</div><div>
<div>
<dt>
- <var>topLevelUrl</var>
+ <var>secondaryUrl</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
- <span class="optional" style="display: none; ">optional</span>
+ <span class="optional">optional</span>
<span class="enum" style="display: none; ">enumerated</span>
<span id="typeTemplate">
<span style="display: none; ">
@@ -2245,7 +2245,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>The URL of the top-level frame.</dd>
+ <dd>The secondary URL for which the content setting should be retrieved. Defaults to the primary URL. Note that the meaning of a secondary URL depends on the content type, and not all content types use secondary URLs.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -2961,7 +2961,7 @@
<div>
<div>
<dt>
- <var>topLevelPattern</var>
+ <var>primaryPattern</var>
<em>
<!-- TYPE -->
@@ -2989,7 +2989,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>The pattern for the top-level frame URL. For details on the format of a pattern, see <a href="match_patterns.html">Match Patterns</a>.</dd>
+ <dd>The pattern for the primary URL. For details on the format of a pattern, see <a href="match_patterns.html">Match Patterns</a>.</dd>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
@@ -3029,13 +3029,13 @@
</div><div>
<div>
<dt>
- <var>embeddedPattern</var>
+ <var>secondaryPattern</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
- <span class="optional" style="display: none; ">optional</span>
+ <span class="optional">optional</span>
<span class="enum" style="display: none; ">enumerated</span>
<span id="typeTemplate">
<span style="display: none; ">
@@ -3057,7 +3057,7 @@
<dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd>The pattern for the frame or object URL. For details on the format of a pattern, see <a href="match_patterns.html">Match Patterns</a>.</dd>
+ <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>
<dd style="display: none; ">
This parameter was added in version
<b><span></span></b>.
« no previous file with comments | « chrome/common/extensions/docs/examples/api/contentSettings/popup.html ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698