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

Side by Side Diff: chrome/common/extensions/api/cookies.json

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 // 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 "types": [ 8 "types": [
9 { 9 {
10 "id": "Cookie", 10 "id": "Cookie",
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "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."} 111 "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."}
112 } 112 }
113 }, 113 },
114 { 114 {
115 "type": "function", 115 "type": "function",
116 "name": "callback", 116 "name": "callback",
117 "optional": true, 117 "optional": true,
118 "min_version": "11.0.674.0", 118 "min_version": "11.0.674.0",
119 "parameters": [ 119 "parameters": [
120 { 120 {
121 "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." 121 "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.runtime.lastError\" will be set. "
122 } 122 }
123 ] 123 ]
124 } 124 }
125 ] 125 ]
126 }, 126 },
127 { 127 {
128 "name": "remove", 128 "name": "remove",
129 "type": "function", 129 "type": "function",
130 "description": "Deletes a cookie by name.", 130 "description": "Deletes a cookie by name.",
131 "parameters": [ 131 "parameters": [
132 { 132 {
133 "type": "object", 133 "type": "object",
134 "name": "details", 134 "name": "details",
135 "description": "Information to identify the cookie to remove.", 135 "description": "Information to identify the cookie to remove.",
136 "properties": { 136 "properties": {
137 "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."}, 137 "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."},
138 "name": {"type": "string", "description": "The name of the cookie to remove."}, 138 "name": {"type": "string", "description": "The name of the cookie to remove."},
139 "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."} 139 "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."}
140 } 140 }
141 }, 141 },
142 { 142 {
143 "type": "function", 143 "type": "function",
144 "name": "callback", 144 "name": "callback",
145 "optional": true, 145 "optional": true,
146 "min_version": "11.0.674.0", 146 "min_version": "11.0.674.0",
147 "parameters": [ 147 "parameters": [
148 { 148 {
149 "name": "details", 149 "name": "details",
150 "type": "object", 150 "type": "object",
151 "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.", 151 "description": "Contains details about the cookie that's been re moved. If removal failed for any reason, this will be \"null\", and \"chrome.ru ntime.lastError\" will be set.",
152 "optional": true, 152 "optional": true,
153 "properties": { 153 "properties": {
154 "url": {"type": "string", "description": "The URL associated w ith the cookie that's been removed."}, 154 "url": {"type": "string", "description": "The URL associated w ith the cookie that's been removed."},
155 "name": {"type": "string", "description": "The name of the coo kie that's been removed."}, 155 "name": {"type": "string", "description": "The name of the coo kie that's been removed."},
156 "storeId": {"type": "string", "description": "The ID of the co okie store from which the cookie was removed."} 156 "storeId": {"type": "string", "description": "The ID of the co okie store from which the cookie was removed."}
157 } 157 }
158 } 158 }
159 ] 159 ]
160 } 160 }
161 ] 161 ]
(...skipping 28 matching lines...) Expand all
190 "removed": {"type": "boolean", "description": "True if a cookie wa s removed."}, 190 "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."}, 191 "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."} 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 } 193 }
194 } 194 }
195 ] 195 ]
196 } 196 }
197 ] 197 ]
198 } 198 }
199 ] 199 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/context_menus.json ('k') | chrome/common/extensions/api/extension.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698