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: chrome/common/extensions/api/extension_api.json

Issue 6525016: Adding callbacks to `chrome.cookies.{set,remove}`. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Dropping samples.json, addressing Jochen's comments." Created 9 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after
3179 "url": {"type": "string", "description": "The request-URI to assoc iate with the setting of the cookie. This value can affect the default domain an d path values of the created cookie. If host permissions for this URL are not sp ecified in the manifest file, the API call will fail."}, 3179 "url": {"type": "string", "description": "The request-URI to assoc iate with the setting of the cookie. This value can affect the default domain an d path values of the created cookie. If host permissions for this URL are not sp ecified in the manifest file, the API call will fail."},
3180 "name": {"type": "string", "optional": true, "description": "The n ame of the cookie. Empty by default if omitted."}, 3180 "name": {"type": "string", "optional": true, "description": "The n ame of the cookie. Empty by default if omitted."},
3181 "value": {"type": "string", "optional": true, "description": "The value of the cookie. Empty by default if omitted."}, 3181 "value": {"type": "string", "optional": true, "description": "The value of the cookie. Empty by default if omitted."},
3182 "domain": {"type": "string", "optional": true, "description": "The domain of the cookie. If omitted, the cookie becomes a host-only cookie."}, 3182 "domain": {"type": "string", "optional": true, "description": "The domain of the cookie. If omitted, the cookie becomes a host-only cookie."},
3183 "path": {"type": "string", "optional": true, "description": "The p ath of the cookie. Defaults to the path portion of the url parameter."}, 3183 "path": {"type": "string", "optional": true, "description": "The p ath of the cookie. Defaults to the path portion of the url parameter."},
3184 "secure": {"type": "boolean", "optional": true, "description": "Wh ether the cookie should be marked as Secure. Defaults to false."}, 3184 "secure": {"type": "boolean", "optional": true, "description": "Wh ether the cookie should be marked as Secure. Defaults to false."},
3185 "httpOnly": {"type": "boolean", "optional": true, "description": " Whether the cookie should be marked as HttpOnly. Defaults to false."}, 3185 "httpOnly": {"type": "boolean", "optional": true, "description": " Whether the cookie should be marked as HttpOnly. Defaults to false."},
3186 "expirationDate": {"type": "number", "optional": true, "descriptio n": "The expiration date of the cookie as the number of seconds since the UNIX e poch. If omitted, the cookie becomes a session cookie."}, 3186 "expirationDate": {"type": "number", "optional": true, "descriptio n": "The expiration date of the cookie as the number of seconds since the UNIX e poch. If omitted, the cookie becomes a session cookie."},
3187 "storeId": {"type": "string", "optional": true, "description": "Th e ID of the cookie store in which to set the cookie. By default, the cookie is s et in the current execution context's cookie store."} 3187 "storeId": {"type": "string", "optional": true, "description": "Th e ID of the cookie store in which to set the cookie. By default, the cookie is s et in the current execution context's cookie store."}
3188 } 3188 }
3189 },
3190 {
3191 "type": "function",
3192 "name": "callback",
3193 "optional": true,
3194 "parameters": [
3195 {
3196 "name": "cookie", "$ref": "Cookie", "optional": true, "descripti on": "Contains details about the cookie that's been set. If setting failed for any reason, this will be \"null\", and \"chrome.extension.lastError\" will be se t."
3197 }
3198 ]
3189 } 3199 }
3190 ] 3200 ]
3191 }, 3201 },
3192 { 3202 {
3193 "name": "remove", 3203 "name": "remove",
3194 "type": "function", 3204 "type": "function",
3195 "description": "Deletes a cookie by name.", 3205 "description": "Deletes a cookie by name.",
3196 "parameters": [ 3206 "parameters": [
3197 { 3207 {
3198 "type": "object", 3208 "type": "object",
3199 "name": "details", 3209 "name": "details",
3200 "description": "Information to identify the cookie to remove.", 3210 "description": "Information to identify the cookie to remove.",
3201 "properties": { 3211 "properties": {
3202 "url": {"type": "string", "description": "The URL associated with the cookie. If host permissions for this URL are not specified in the manifest f ile, the API call will fail."}, 3212 "url": {"type": "string", "description": "The URL associated with the cookie. If host permissions for this URL are not specified in the manifest f ile, the API call will fail."},
3203 "name": {"type": "string", "description": "The name of the cookie to remove."}, 3213 "name": {"type": "string", "description": "The name of the cookie to remove."},
3204 "storeId": {"type": "string", "optional": true, "description": "Th e ID of the cookie store to look in for the cookie. If unspecified, the cookie i s looked for by default in the current execution context's cookie store."} 3214 "storeId": {"type": "string", "optional": true, "description": "Th e ID of the cookie store to look in for the cookie. If unspecified, the cookie i s looked for by default in the current execution context's cookie store."}
3205 } 3215 }
3216 },
3217 {
3218 "type": "function",
3219 "name": "callback",
3220 "optional": true,
3221 "parameters": [
3222 {
3223 "name": "details",
3224 "type": "object",
3225 "description": "Contains details about the cookie that's been re moved. If removal failed for any reason, this will be \"null\", and \"chrome.ex tension.lastError\" will be set.",
3226 "optional": true,
3227 "properties": {
3228 "url": {"type": "string", "description": "The URL associated w ith the cookie that's been removed."},
3229 "name": {"type": "string", "description": "The name of the coo kie that's been removed."},
3230 "storeId": {"type": "string", "description": "The ID of the co okie store from which the cookie was removed."}
3231 }
3232 }
3233 ]
3206 } 3234 }
3207 ] 3235 ]
3208 }, 3236 },
3209 { 3237 {
3210 "name": "getAllCookieStores", 3238 "name": "getAllCookieStores",
3211 "type": "function", 3239 "type": "function",
3212 "description": "Lists all existing cookie stores.", 3240 "description": "Lists all existing cookie stores.",
3213 "parameters": [ 3241 "parameters": [
3214 { 3242 {
3215 "type": "function", 3243 "type": "function",
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
4498 "token": { "type": "string", "optional": true } 4526 "token": { "type": "string", "optional": true }
4499 } 4527 }
4500 } 4528 }
4501 ] 4529 ]
4502 } 4530 }
4503 ] 4531 ]
4504 } 4532 }
4505 ] 4533 ]
4506 } 4534 }
4507 ] 4535 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698