Chromium Code Reviews| Index: chrome/common/extensions/api/extension_api.json |
| diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
| index f3582aa795357c2d07b1bc5f8cd20b9a45d3755d..875522f8c2de6c8391afbada7d98b533a7a51cbf 100644 |
| --- a/chrome/common/extensions/api/extension_api.json |
| +++ b/chrome/common/extensions/api/extension_api.json |
| @@ -3295,6 +3295,16 @@ |
| "expirationDate": {"type": "number", "optional": true, "description": "The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie."}, |
| "storeId": {"type": "string", "optional": true, "description": "The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store."} |
| } |
| + }, |
| + { |
| + "type": "function", |
| + "name": "callback", |
| + "optional": true, |
| + "parameters": [ |
| + { |
| + "name": "cookie", "$ref": "Cookie", "optional": true, "description": "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.
|
| + } |
| + ] |
| } |
| ] |
| }, |
| @@ -3312,6 +3322,24 @@ |
| "name": {"type": "string", "description": "The name of the cookie to remove."}, |
| "storeId": {"type": "string", "optional": true, "description": "The ID of the cookie store to look in for the cookie. If unspecified, the cookie is looked for by default in the current execution context's cookie store."} |
| } |
| + }, |
| + { |
| + "type": "function", |
| + "name": "callback", |
| + "optional": true, |
| + "parameters": [ |
| + { |
| + "name": "details", |
| + "type": "object", |
| + "description": "Contains details about the cookie that's been removed. If removal failed for any reason, this will be `null`, and `chrome.extension.lastError` will be set.", |
| + "optional": true, |
| + "properties": { |
| + "url": {"type": "string", "description": "The URL associated with the cookie that's been removed."}, |
| + "name": {"type": "string", "description": "The name of the cookie that's been removed."}, |
| + "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
|
| + } |
| + } |
| + ] |
| } |
| ] |
| }, |