Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "cookies", | 7 "namespace": "cookies", |
| 8 "description": "The <code>chrome.cookies</code> module allows you to work wi th HTTP cookies.", | |
|
epeterson
2013/06/13 03:24:28
This isn't an official description, I just made it
not at google - send to devlin
2013/06/19 16:47:16
How about: Use the <code>chrome.cookies</code> API
epeterson
2013/06/20 23:07:40
Done.
| |
| 8 "types": [ | 9 "types": [ |
| 9 { | 10 { |
| 10 "id": "Cookie", | 11 "id": "Cookie", |
| 11 "type": "object", | 12 "type": "object", |
| 12 "description": "Represents information about an HTTP cookie.", | 13 "description": "Represents information about an HTTP cookie.", |
| 13 "properties": { | 14 "properties": { |
| 14 "name": {"type": "string", "description": "The name of the cookie."}, | 15 "name": {"type": "string", "description": "The name of the cookie."}, |
| 15 "value": {"type": "string", "description": "The value of the cookie."} , | 16 "value": {"type": "string", "description": "The value of the cookie."} , |
| 16 "domain": {"type": "string", "description": "The domain of the cookie (e.g. \"www.google.com\", \"example.com\")."}, | 17 "domain": {"type": "string", "description": "The domain of the cookie (e.g. \"www.google.com\", \"example.com\")."}, |
| 17 "hostOnly": {"type": "boolean", "description": "True if the cookie is a host-only cookie (i.e. a request's host must exactly match the domain of the c ookie)."}, | 18 "hostOnly": {"type": "boolean", "description": "True if the cookie is a host-only cookie (i.e. a request's host must exactly match the domain of the c ookie)."}, |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 "removed": {"type": "boolean", "description": "True if a cookie wa s removed."}, | 191 "removed": {"type": "boolean", "description": "True if a cookie wa s removed."}, |
| 191 "cookie": {"$ref": "Cookie", "description": "Information about the cookie that was set or removed."}, | 192 "cookie": {"$ref": "Cookie", "description": "Information about the cookie that was set or removed."}, |
| 192 "cause": {"min_version": "12.0.707.0", "type": "string", "enum": [ "evicted", "expired", "explicit", "expired_overwrite", "overwrite"], "descriptio n": "The underlying reason behind the cookie's change. If a cookie was inserted, or removed via an explicit call to \"chrome.cookies.remove\", \"cause\" will be \"explicit\". If a cookie was automatically removed due to expiry, \"cause\" wi ll be \"expired\". If a cookie was removed due to being overwritten with an alre ady-expired expiration date, \"cause\" will be set to \"expired_overwrite\". If a cookie was automatically removed due to garbage collection, \"cause\" will be \"evicted\". If a cookie was automatically removed due to a \"set\" call that overwrote it, \"cause\" will be \"overwrite\". Plan your response accordingly."} | 193 "cause": {"min_version": "12.0.707.0", "type": "string", "enum": [ "evicted", "expired", "explicit", "expired_overwrite", "overwrite"], "descriptio n": "The underlying reason behind the cookie's change. If a cookie was inserted, or removed via an explicit call to \"chrome.cookies.remove\", \"cause\" will be \"explicit\". If a cookie was automatically removed due to expiry, \"cause\" wi ll be \"expired\". If a cookie was removed due to being overwritten with an alre ady-expired expiration date, \"cause\" will be set to \"expired_overwrite\". If a cookie was automatically removed due to garbage collection, \"cause\" will be \"evicted\". If a cookie was automatically removed due to a \"set\" call that overwrote it, \"cause\" will be \"overwrite\". Plan your response accordingly."} |
| 193 } | 194 } |
| 194 } | 195 } |
| 195 ] | 196 ] |
| 196 } | 197 } |
| 197 ] | 198 ] |
| 198 } | 199 } |
| 199 ] | 200 ] |
| OLD | NEW |