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

Side by Side Diff: third_party/chrome/idl/content_settings.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « third_party/chrome/idl/commands.json ('k') | third_party/chrome/idl/context_menus.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "contentSettings",
8 "compiler_options": {
9 "generate_type_functions": true
10 },
11 "types": [
12 {
13 "id": "ResourceIdentifier",
14 "type": "object",
15 "properties": {
16 "id": {
17 "type": "string",
18 "description": "The resource identifier for the given content type."
19 },
20 "description": {
21 "type": "string",
22 "optional": true,
23 "description": "A human readable description of the resource."
24 }
25 },
26 "description": "The only content type using resource identifiers is $ref :contentSettings.plugins. For more information, see <a href=\"contentSettings.ht ml#resource-identifiers\">Resource Identifiers</a>."
27 },
28 {
29 "id": "ContentSetting",
30 "type": "object",
31 "functions": [
32 {
33 "name": "clear",
34 "type": "function",
35 "description": "Clear all content setting rules set by this extensio n.",
36 "parameters": [
37 {
38 "name": "details",
39 "type": "object",
40 "properties": {
41 "scope": {
42 "type": "string",
43 "enum": ["regular", "incognito_session_only"],
44 "optional": true,
45 "description": "Where to set the setting (default: regular). One of<br><var>regular</var>: setting for regular profile (which is inherited b y the incognito profile if not overridden elsewhere),<br><var>incognito_session_ only</var>: setting for incognito profile that can only be set during an incogni to session and is deleted when the incognito session ends (overrides regular set tings)."
46 }
47 }
48 },
49 {
50 "type": "function",
51 "name": "callback",
52 "optional": true,
53 "parameters": []
54 }
55 ]
56 },
57 {
58 "name": "get",
59 "type": "function",
60 "description": "Gets the current content setting for a given pair of URLs.",
61 "parameters": [
62 {
63 "name": "details",
64 "type": "object",
65 "properties": {
66 "primaryUrl": {
67 "type": "string",
68 "description": "The primary URL for which the content settin g should be retrieved. Note that the meaning of a primary URL depends on the con tent type."
69 },
70 "secondaryUrl": {
71 "type": "string",
72 "description": "The secondary URL for which the content sett ing 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 second ary URLs.",
73 "optional": true
74 },
75 "resourceIdentifier": {
76 "$ref": "ResourceIdentifier",
77 "optional": true,
78 "description": "A more specific identifier of the type of co ntent for which the settings should be retrieved."
79 },
80 "incognito": {
81 "type": "boolean",
82 "optional": true,
83 "description": "Whether to check the content settings for an incognito session. (default false)"
84 }
85 }
86 },
87 {
88 "type": "function",
89 "name": "callback",
90 "parameters": [
91 {
92 "name": "details",
93 "type": "object",
94 "properties": {
95 "setting": {
96 "type": "any",
97 "description": "The content setting. See the description of the individual ContentSetting objects for the possible values."
98 }
99 }
100 }
101 ]
102 }
103 ]
104 },
105 {
106 "name": "set",
107 "type": "function",
108 "description": "Applies a new content setting rule.",
109 "parameters": [
110 {
111 "name": "details",
112 "type": "object",
113 "properties": {
114 "primaryPattern": {
115 "type": "string",
116 "description": "The pattern for the primary URL. For details on the format of a pattern, see <a href='contentSettings.html#patterns'>Content Setting Patterns</a>."
117 },
118 "secondaryPattern": {
119 "type": "string",
120 "description": "The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see <a href='conte ntSettings.html#patterns'>Content Setting Patterns</a>.",
121 "optional": true
122 },
123 "resourceIdentifier": {
124 "$ref": "ResourceIdentifier",
125 "optional": true,
126 "description": "The resource identifier for the content type ."
127 },
128 "setting": {
129 "type": "any",
130 "description": "The setting applied by this rule. See the de scription of the individual ContentSetting objects for the possible values."
131 },
132 "scope": {
133 "type": "string",
134 "enum": ["regular", "incognito_session_only"],
135 "optional": true,
136 "description": "Where to clear the setting (default: regular ). One of<br><var>regular</var>: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),<br><var>incognito_sessio n_only</var>: setting for incognito profile that can only be set during an incog nito session and is deleted when the incognito session ends (overrides regular s ettings)."
137 }
138 }
139 },
140 {
141 "type": "function",
142 "name": "callback",
143 "optional": true,
144 "parameters": []
145 }
146 ]
147 },
148 {
149 "name": "getResourceIdentifiers",
150 "type": "function",
151 "description": "",
152 "parameters": [
153 {
154 "name": "callback",
155 "type": "function",
156 "parameters": [
157 {
158 "name": "resourceIdentifiers",
159 "type": "array",
160 "description": "A list of resource identifiers for this cont ent type, or <var>undefined</var> if this content type does not use resource ide ntifiers.",
161 "optional": true,
162 "items": {
163 "$ref": "ResourceIdentifier"
164 }
165 }
166 ]
167 }
168 ]
169 }
170 ]
171 }
172 ],
173 "properties": {
174 "cookies": {
175 "$ref": "ContentSetting",
176 "description": "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>: Bl ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses sion. <br>Default is <var>allow</var>.<br>The primary URL is the URL representin g the cookie origin. The secondary URL is the URL of the top-level frame.",
177 "value": [
178 "cookies",
179 {"type":"string", "enum": ["allow", "block", "session_only"]}
180 ]
181 },
182 "images": {
183 "$ref": "ContentSetting",
184 "description": "Whether to show images. One of<br><var>allow</var>: Show images,<br><var>block</var>: Don't show images. <br>Default is <var>allow</var> .<br>The primary URL is the main-frame URL. The secondary URL is the URL of the image.",
185 "value": [
186 "images",
187 {"type":"string", "enum": ["allow", "block"]}
188 ]
189 },
190 "javascript": {
191 "$ref": "ContentSetting",
192 "description": "Whether to run JavaScript. One of<br><var>allow</var>: R un JavaScript,<br><var>block</var>: Don't run JavaScript. <br>Default is <var>al low</var>.<br>The primary URL is the main-frame URL. The secondary URL is not us ed.",
193 "value": [
194 "javascript",
195 {"type":"string", "enum": ["allow", "block"]}
196 ]
197 },
198 "plugins": {
199 "$ref": "ContentSetting",
200 "description": "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>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The s econdary URL is not used.",
201 "value": [
202 "plugins",
203 {"type":"string", "enum": ["allow", "block"]}
204 ]
205 },
206 "popups": {
207 "$ref": "ContentSetting",
208 "description": "Whether to allow sites to show pop-ups. One of<br><var>a llow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites to show pop-ups. <br>Default is <var>block</var>.<br>The primary URL is the main -frame URL. The secondary URL is not used.",
209 "value": [
210 "popups",
211 {"type":"string", "enum": ["allow", "block"]}
212 ]
213 },
214 "notifications": {
215 "$ref": "ContentSetting",
216 "description": "Whether to allow sites to show desktop notifications. On e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As k when a site wants to show desktop notifications. <br>Default is <var>ask</var> .<br>The primary URL is the main-frame URL. The secondary URL is not used.",
217 "value": [
218 "notifications",
219 {"type":"string", "enum": ["allow", "block", "ask"]}
220 ]
221 }
222 }
223 }
224 ]
OLDNEW
« no previous file with comments | « third_party/chrome/idl/commands.json ('k') | third_party/chrome/idl/context_menus.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698