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

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: 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 3277 matching lines...) Expand 10 before | Expand all | Expand 10 after
3288 "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."}, 3288 "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."},
3289 "name": {"type": "string", "optional": true, "description": "The n ame of the cookie. Empty by default if omitted."}, 3289 "name": {"type": "string", "optional": true, "description": "The n ame of the cookie. Empty by default if omitted."},
3290 "value": {"type": "string", "optional": true, "description": "The value of the cookie. Empty by default if omitted."}, 3290 "value": {"type": "string", "optional": true, "description": "The value of the cookie. Empty by default if omitted."},
3291 "domain": {"type": "string", "optional": true, "description": "The domain of the cookie. If omitted, the cookie becomes a host-only cookie."}, 3291 "domain": {"type": "string", "optional": true, "description": "The domain of the cookie. If omitted, the cookie becomes a host-only cookie."},
3292 "path": {"type": "string", "optional": true, "description": "The p ath of the cookie. Defaults to the path portion of the url parameter."}, 3292 "path": {"type": "string", "optional": true, "description": "The p ath of the cookie. Defaults to the path portion of the url parameter."},
3293 "secure": {"type": "boolean", "optional": true, "description": "Wh ether the cookie should be marked as Secure. Defaults to false."}, 3293 "secure": {"type": "boolean", "optional": true, "description": "Wh ether the cookie should be marked as Secure. Defaults to false."},
3294 "httpOnly": {"type": "boolean", "optional": true, "description": " Whether the cookie should be marked as HttpOnly. Defaults to false."}, 3294 "httpOnly": {"type": "boolean", "optional": true, "description": " Whether the cookie should be marked as HttpOnly. Defaults to false."},
3295 "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."}, 3295 "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."},
3296 "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."} 3296 "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."}
3297 } 3297 }
3298 },
3299 {
3300 "type": "function",
3301 "name": "callback",
3302 "optional": true,
3303 "parameters": [
3304 {
3305 "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 set."
jochen (gone - plz use gerrit) 2011/02/15 13:44:10 no backticks also, why not return the storeId her
Mike West 2011/02/15 14:26:58 Done.
3306 }
3307 ]
3298 } 3308 }
3299 ] 3309 ]
3300 }, 3310 },
3301 { 3311 {
3302 "name": "remove", 3312 "name": "remove",
3303 "type": "function", 3313 "type": "function",
3304 "description": "Deletes a cookie by name.", 3314 "description": "Deletes a cookie by name.",
3305 "parameters": [ 3315 "parameters": [
3306 { 3316 {
3307 "type": "object", 3317 "type": "object",
3308 "name": "details", 3318 "name": "details",
3309 "description": "Information to identify the cookie to remove.", 3319 "description": "Information to identify the cookie to remove.",
3310 "properties": { 3320 "properties": {
3311 "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."}, 3321 "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."},
3312 "name": {"type": "string", "description": "The name of the cookie to remove."}, 3322 "name": {"type": "string", "description": "The name of the cookie to remove."},
3313 "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."} 3323 "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."}
3314 } 3324 }
3325 },
3326 {
3327 "type": "function",
3328 "name": "callback",
3329 "optional": true,
3330 "parameters": [
3331 {
3332 "name": "details",
3333 "type": "object",
3334 "description": "Contains details about the cookie that's been re moved. If removal failed for any reason, this will be `null`, and `chrome.exten sion.lastError` will be set.",
3335 "optional": true,
3336 "properties": {
3337 "url": {"type": "string", "description": "The URL associated w ith the cookie that's been removed."},
3338 "name": {"type": "string", "description": "The name of the coo kie that's been removed."},
3339 "storeId": {"type": "string", "optional": true, "description": "The ID of the cookie store from which the cookie was removed."}
jochen (gone - plz use gerrit) 2011/02/15 13:44:10 why would storeId be optional?
Mike West 2011/02/15 14:26:58 Because I thought it would be tough to grab. As i
3340 }
3341 }
3342 ]
3315 } 3343 }
3316 ] 3344 ]
3317 }, 3345 },
3318 { 3346 {
3319 "name": "getAllCookieStores", 3347 "name": "getAllCookieStores",
3320 "type": "function", 3348 "type": "function",
3321 "description": "Lists all existing cookie stores.", 3349 "description": "Lists all existing cookie stores.",
3322 "parameters": [ 3350 "parameters": [
3323 { 3351 {
3324 "type": "function", 3352 "type": "function",
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
4532 "token": { "type": "string", "optional": true } 4560 "token": { "type": "string", "optional": true }
4533 } 4561 }
4534 } 4562 }
4535 ] 4563 ]
4536 } 4564 }
4537 ] 4565 ]
4538 } 4566 }
4539 ] 4567 ]
4540 } 4568 }
4541 ] 4569 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698