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

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: Fixing ExtensionPermissionSetTest 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
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 8067 matching lines...) Expand 10 before | Expand all | Expand 10 after
8078 "name": "result", 8078 "name": "result",
8079 "type": "string", 8079 "type": "string",
8080 "description": "A string result code. The value is non-empty on success only in tests.", 8080 "description": "A string result code. The value is non-empty on success only in tests.",
8081 "optional": "true" 8081 "optional": "true"
8082 } 8082 }
8083 ] 8083 ]
8084 } 8084 }
8085 ] 8085 ]
8086 } 8086 }
8087 ] 8087 ]
8088 },
8089 {
8090 "namespace": "experimental.clear",
8091 "types": [
8092 {
8093 "id": "TimePeriod",
8094 "type": "string",
8095 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "],
8096 "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."
8097 }
8098 ],
8099 "functions": [
8100 {
8101 "name": "browsingData",
8102 "description": "Clears data generated by browsing within a particular ti meframe.",
8103 "type": "function",
8104 "parameters": [
8105 {
8106 "$ref": "TimePeriod",
8107 "name": "period"
8108 },
8109 {
8110 "name": "dataToRemove",
8111 "type": "object",
8112 "properties": {
8113 "cache": {
8114 "type": "boolean",
8115 "optional": true,
8116 "description": "Should the browser cache be cleared?"
8117 },
8118 "cookies": {
8119 "type": "boolean",
8120 "optional": true,
8121 "description": "Should the browser's cookies be cleared?"
8122 },
8123 "downloads": {
8124 "type": "boolean",
8125 "optional": true,
8126 "description": "Should the browser's download list be cleared?"
8127 },
8128 "formData": {
8129 "type": "boolean",
8130 "optional": true,
8131 "description": "Should stored form data be cleared?"
8132 },
8133 "history": {
8134 "type": "boolean",
8135 "optional": true,
8136 "description": "Should the browser's history be cleared?"
8137 },
8138 "passwords": {
8139 "type": "boolean",
8140 "optional": true,
8141 "description": "Should the stored passwords be cleared?"
8142 }
8143 }
8144 },
8145 {
8146 "name": "callback",
8147 "type": "function",
8148 "description": "Called when deletion has completed.",
8149 "optional": true,
8150 "parameters": [
8151 {
8152 "name": "result",
8153 "type": "boolean",
8154 "description": "Was the data deletion successful?"
8155 }
8156 ]
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 "name": "result",
8177 "type": "boolean",
8178 "description": "Was the data deletion successful?"
8179 }
8180 ]
8181 }
8182 ]
8183 },
8184 {
8185 "name": "cookies",
8186 "description": "Clears the browser's cookies and site data.",
8187 "type": "function",
8188 "parameters": [
8189 {
8190 "$ref": "TimePeriod",
8191 "name": "period"
8192 },
8193 {
8194 "name": "callback",
8195 "type": "function",
8196 "description": "Called when the browser's cookies and site data have been cleared.",
8197 "optional": true,
8198 "parameters": [
8199 {
8200 "name": "result",
8201 "type": "boolean",
8202 "description": "Was the data deletion successful?"
8203 }
8204 ]
8205 }
8206 ]
8207 },
8208 {
8209 "name": "downloads",
8210 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).",
8211 "type": "function",
8212 "parameters": [
8213 {
8214 "$ref": "TimePeriod",
8215 "name": "period"
8216 },
8217 {
8218 "name": "callback",
8219 "type": "function",
8220 "description": "Called when the browser's list of downloaded files h as been cleared.",
8221 "optional": true,
8222 "parameters": [
8223 {
8224 "name": "result",
8225 "type": "boolean",
8226 "description": "Was the data deletion successful?"
8227 }
8228 ]
8229 }
8230 ]
8231 },
8232 {
8233 "name": "formData",
8234 "description": "Clears the browser's stored form data (autofill).",
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 form data has been cleared .",
8245 "optional": true,
8246 "parameters": [
8247 {
8248 "name": "result",
8249 "type": "boolean",
8250 "description": "Was the data deletion successful?"
8251 }
8252 ]
8253 }
8254 ]
8255 },
8256 {
8257 "name": "history",
8258 "description": "Clears the browser's history.",
8259 "type": "function",
8260 "parameters": [
8261 {
8262 "$ref": "TimePeriod",
8263 "name": "period"
8264 },
8265 {
8266 "name": "callback",
8267 "type": "function",
8268 "description": "Called when the browser's history has cleared.",
8269 "optional": true,
8270 "parameters": [
8271 {
8272 "name": "result",
8273 "type": "boolean",
8274 "description": "Was the data deletion successful?"
8275 }
8276 ]
8277 }
8278 ]
8279 },
8280 {
8281 "name": "passwords",
8282 "description": "Clears the browser's stored passwords.",
8283 "type": "function",
8284 "parameters": [
8285 {
8286 "$ref": "TimePeriod",
8287 "name": "period"
8288 },
8289 {
8290 "name": "callback",
8291 "type": "function",
8292 "description": "Called when the browser's passwords have been cleare d.",
8293 "optional": true,
8294 "parameters": [
8295 {
8296 "name": "result",
8297 "type": "boolean",
8298 "description": "Was the data deletion successful?"
8299 }
8300 ]
8301 }
8302 ]
8303 }
8304 ]
8088 } 8305 }
8089 ] 8306 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698