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

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

Issue 7551008: Strawman proposal for chrome.experimental.clear.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new docs, not running tryjobs again. Created 9 years, 4 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8072 matching lines...) Expand 10 before | Expand all | Expand 10 after
8083 "name": "result", 8083 "name": "result",
8084 "type": "string", 8084 "type": "string",
8085 "description": "A string result code. The value is non-empty on success only in tests.", 8085 "description": "A string result code. The value is non-empty on success only in tests.",
8086 "optional": "true" 8086 "optional": "true"
8087 } 8087 }
8088 ] 8088 ]
8089 } 8089 }
8090 ] 8090 ]
8091 } 8091 }
8092 ] 8092 ]
8093 },
8094 {
8095 "namespace": "experimental.clear",
kathyw 2011/08/25 18:33:15 It's a little odd to have a namespace that is a ve
8096 "types": [
8097 {
8098 "id": "TimePeriod",
8099 "type": "string",
8100 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "],
8101 "description": "The timeframe inside of which to delete browsing data. P assing 'last_day', for example, will delete all browsing data that was touched b etween 24 hours ago and right now, inclusive."
kathyw 2011/08/25 18:33:15 will delete -> deletes
8102 }
8103 ],
8104 "functions": [
8105 {
8106 "name": "browsingData",
kathyw 2011/08/25 18:33:15 browsingData -> clear or maybe "remove" or maybe
8107 "description": "Clears data generated by browsing within a particular ti meframe.",
kathyw 2011/08/25 18:33:15 data generated by -> the specified kinds of data t
8108 "type": "function",
8109 "parameters": [
8110 {
8111 "$ref": "TimePeriod",
8112 "name": "period"
8113 },
8114 {
8115 "name": "dataToRemove",
8116 "type": "object",
8117 "description": "An object whose properties specify which browsing da ta types ought to be cleared. You may set as many or as few as you like in a sin gle call, each is optional (defaulting to <code>false</code>).",
kathyw 2011/08/25 18:33:15 First sentence could be more straightforward: ->
8118 "properties": {
8119 "cache": {
kathyw 2011/08/25 18:33:15 cache -> clearCache
8120 "type": "boolean",
8121 "optional": true,
8122 "description": "Should the browser cache be cleared?"
kathyw 2011/08/25 18:33:15 Interesting construction, having these as question
8123 },
8124 "cookies": {
8125 "type": "boolean",
8126 "optional": true,
8127 "description": "Should the browser's cookies be cleared?"
kathyw 2011/08/25 18:33:15 Specify <code>true</code> to remove browser cookie
8128 },
8129 "downloads": {
8130 "type": "boolean",
8131 "optional": true,
8132 "description": "Should the browser's download list be cleared?"
8133 },
8134 "formData": {
8135 "type": "boolean",
8136 "optional": true,
8137 "description": "Should stored form data be cleared?"
8138 },
8139 "history": {
8140 "type": "boolean",
8141 "optional": true,
8142 "description": "Should the browser's history be cleared?"
8143 },
8144 "passwords": {
8145 "type": "boolean",
8146 "optional": true,
8147 "description": "Should the stored passwords be cleared?"
8148 }
8149 }
8150 },
8151 {
8152 "name": "callback",
8153 "type": "function",
8154 "description": "Called when deletion has completed.",
8155 "optional": true,
8156 "parameters": []
8157 }
8158 ]
8159 },
8160 {
8161 "name": "cache",
8162 "description": "Clears the browser's cache.",
8163 "type": "function",
8164 "parameters": [
8165 {
8166 "$ref": "TimePeriod",
8167 "name": "period"
8168 },
8169 {
8170 "name": "callback",
8171 "type": "function",
8172 "description": "Called when the browser's cache has cleared.",
8173 "optional": true,
8174 "parameters": []
8175 }
8176 ]
8177 },
8178 {
8179 "name": "cookies",
8180 "description": "Clears the browser's cookies and site data.",
8181 "type": "function",
8182 "parameters": [
8183 {
8184 "$ref": "TimePeriod",
8185 "name": "period"
8186 },
8187 {
8188 "name": "callback",
8189 "type": "function",
8190 "description": "Called when the browser's cookies and site data have been cleared.",
8191 "optional": true,
8192 "parameters": []
8193 }
8194 ]
8195 },
8196 {
8197 "name": "downloads",
8198 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).",
8199 "type": "function",
8200 "parameters": [
8201 {
8202 "$ref": "TimePeriod",
8203 "name": "period"
8204 },
8205 {
8206 "name": "callback",
8207 "type": "function",
8208 "description": "Called when the browser's list of downloaded files h as been cleared.",
8209 "optional": true,
8210 "parameters": []
8211 }
8212 ]
8213 },
8214 {
8215 "name": "formData",
8216 "description": "Clears the browser's stored form data (autofill).",
8217 "type": "function",
8218 "parameters": [
8219 {
8220 "$ref": "TimePeriod",
8221 "name": "period"
8222 },
8223 {
8224 "name": "callback",
8225 "type": "function",
8226 "description": "Called when the browser's form data has been cleared .",
8227 "optional": true,
8228 "parameters": []
8229 }
8230 ]
8231 },
8232 {
8233 "name": "history",
8234 "description": "Clears the browser's history.",
8235 "type": "function",
8236 "parameters": [
8237 {
8238 "$ref": "TimePeriod",
8239 "name": "period"
8240 },
8241 {
8242 "name": "callback",
8243 "type": "function",
8244 "description": "Called when the browser's history has cleared.",
8245 "optional": true,
8246 "parameters": []
8247 }
8248 ]
8249 },
8250 {
8251 "name": "passwords",
8252 "description": "Clears the browser's stored passwords.",
8253 "type": "function",
8254 "parameters": [
8255 {
8256 "$ref": "TimePeriod",
8257 "name": "period"
8258 },
8259 {
8260 "name": "callback",
8261 "type": "function",
8262 "description": "Called when the browser's passwords have been cleare d.",
8263 "optional": true,
8264 "parameters": []
8265 }
8266 ]
8267 }
8268 ]
8093 } 8269 }
8094 ] 8270 ]
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698