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

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: Bernhard's feedback + rebase + docs. 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 8045 matching lines...) Expand 10 before | Expand all | Expand 10 after
8056 "name": "result", 8056 "name": "result",
8057 "type": "string", 8057 "type": "string",
8058 "description": "A string result code. The value is non-empty on success only in tests.", 8058 "description": "A string result code. The value is non-empty on success only in tests.",
8059 "optional": "true" 8059 "optional": "true"
8060 } 8060 }
8061 ] 8061 ]
8062 } 8062 }
8063 ] 8063 ]
8064 } 8064 }
8065 ] 8065 ]
8066 },
8067 {
8068 "namespace": "experimental.clear",
8069 "types": [
8070 {
8071 "id": "TimePeriod",
8072 "type": "string",
8073 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "],
8074 "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."
8075 }
8076 ],
8077 "functions": [
8078 {
8079 "name": "browsingData",
8080 "description": "Clears data generated by browsing within a particular ti meframe.",
8081 "type": "function",
8082 "parameters": [
8083 {
8084 "$ref": "TimePeriod",
8085 "name": "period"
8086 },
8087 {
8088 "name": "dataToRemove",
8089 "type": "object",
8090 "properties": {
8091 "cache": {
8092 "type": "boolean",
8093 "optional": true,
8094 "description": "Should the browser cache be cleared?"
8095 },
8096 "cookies": {
8097 "type": "boolean",
8098 "optional": true,
8099 "description": "Should the browser's cookies be cleared?"
8100 },
8101 "downloads": {
8102 "type": "boolean",
8103 "optional": true,
8104 "description": "Should the browser's download list be cleared?"
8105 },
8106 "formData": {
8107 "type": "boolean",
8108 "optional": true,
8109 "description": "Should stored form data be cleared?"
8110 },
8111 "history": {
8112 "type": "boolean",
8113 "optional": true,
8114 "description": "Should the browser's history be cleared?"
8115 },
8116 "passwords": {
8117 "type": "boolean",
8118 "optional": true,
8119 "description": "Should the stored passwords be cleared?"
8120 }
8121 }
8122 },
8123 {
8124 "name": "callback",
8125 "type": "function",
8126 "description": "Called when deletion has completed.",
8127 "optional": true,
8128 "parameters": [
8129 {
8130 "name": "result",
8131 "type": "boolean",
8132 "description": "Was the data deletion successful?"
8133 }
8134 ]
8135 }
8136 ]
8137 },
8138 {
8139 "name": "cache",
8140 "description": "Clears the browser's cache.",
8141 "type": "function",
8142 "parameters": [
8143 {
8144 "$ref": "TimePeriod",
8145 "name": "period"
8146 },
8147 {
8148 "name": "callback",
8149 "type": "function",
8150 "description": "Called when the browser's cache has cleared.",
8151 "optional": true,
8152 "parameters": [
8153 {
8154 "name": "result",
8155 "type": "boolean",
8156 "description": "Was the data deletion successful?"
8157 }
8158 ]
8159 }
8160 ]
8161 },
8162 {
8163 "name": "cookies",
8164 "description": "Clears the browser's cookies and site data.",
8165 "type": "function",
8166 "parameters": [
8167 {
8168 "$ref": "TimePeriod",
8169 "name": "period"
8170 },
8171 {
8172 "name": "callback",
8173 "type": "function",
8174 "description": "Called when the browser's cookies and site data have been cleared.",
8175 "optional": true,
8176 "parameters": [
8177 {
8178 "name": "result",
8179 "type": "boolean",
8180 "description": "Was the data deletion successful?"
8181 }
8182 ]
8183 }
8184 ]
8185 },
8186 {
8187 "name": "downloads",
8188 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).",
8189 "type": "function",
8190 "parameters": [
8191 {
8192 "$ref": "TimePeriod",
8193 "name": "period"
8194 },
8195 {
8196 "name": "callback",
8197 "type": "function",
8198 "description": "Called when the browser's list of downloaded files h as been cleared.",
8199 "optional": true,
8200 "parameters": [
8201 {
8202 "name": "result",
8203 "type": "boolean",
8204 "description": "Was the data deletion successful?"
8205 }
8206 ]
8207 }
8208 ]
8209 },
8210 {
8211 "name": "formData",
8212 "description": "Clears the browser's stored form data (autofill).",
8213 "type": "function",
8214 "parameters": [
8215 {
8216 "$ref": "TimePeriod",
8217 "name": "period"
8218 },
8219 {
8220 "name": "callback",
8221 "type": "function",
8222 "description": "Called when the browser's form data has been cleared .",
8223 "optional": true,
8224 "parameters": [
8225 {
8226 "name": "result",
8227 "type": "boolean",
8228 "description": "Was the data deletion successful?"
8229 }
8230 ]
8231 }
8232 ]
8233 },
8234 {
8235 "name": "history",
8236 "description": "Clears the browser's history.",
8237 "type": "function",
8238 "parameters": [
8239 {
8240 "$ref": "TimePeriod",
8241 "name": "period"
8242 },
8243 {
8244 "name": "callback",
8245 "type": "function",
8246 "description": "Called when the browser's history has cleared.",
8247 "optional": true,
8248 "parameters": [
8249 {
8250 "name": "result",
8251 "type": "boolean",
8252 "description": "Was the data deletion successful?"
8253 }
8254 ]
8255 }
8256 ]
8257 },
8258 {
8259 "name": "passwords",
8260 "description": "Clears the browser's stored passwords.",
8261 "type": "function",
8262 "parameters": [
8263 {
8264 "$ref": "TimePeriod",
8265 "name": "period"
8266 },
8267 {
8268 "name": "callback",
8269 "type": "function",
8270 "description": "Called when the browser's passwords have been cleare d.",
8271 "optional": true,
8272 "parameters": [
8273 {
8274 "name": "result",
8275 "type": "boolean",
8276 "description": "Was the data deletion successful?"
8277 }
8278 ]
8279 }
8280 ]
8281 }
8282 ]
8066 } 8283 }
8067 ] 8284 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698