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

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

Issue 8008012: chrome.clear: Increasing granularity of public API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 8302 matching lines...) Expand 10 before | Expand all | Expand 10 after
8313 "description": "A string result code. The value is non-empty on success only in tests.", 8313 "description": "A string result code. The value is non-empty on success only in tests.",
8314 "optional": "true" 8314 "optional": "true"
8315 } 8315 }
8316 ] 8316 ]
8317 } 8317 }
8318 ] 8318 ]
8319 } 8319 }
8320 ] 8320 ]
8321 }, 8321 },
8322 { 8322 {
8323 "namespace": "experimental.clear", 8323 "namespace": "experimental.clear",
Aaron Boodman 2011/10/12 08:20:32 "clear" is kind of a weird package name.
Mike West 2011/12/13 11:27:23 Yeah. I had this exact discussion with Kathy and M
8324 "types": [ 8324 "types": [
8325 { 8325 {
8326 "id": "TimePeriod", 8326 "id": "TimePeriod",
8327 "type": "string", 8327 "type": "string",
8328 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "], 8328 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "],
8329 "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." 8329 "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."
8330 } 8330 }
8331 ], 8331 ],
8332 "functions": [ 8332 "functions": [
8333 { 8333 {
8334 "name": "browsingData", 8334 "name": "browsingData",
8335 "description": "Clears data generated by browsing within a particular ti meframe.", 8335 "description": "Clears data generated by browsing within a particular ti meframe.",
8336 "type": "function", 8336 "type": "function",
8337 "parameters": [ 8337 "parameters": [
8338 { 8338 {
8339 "$ref": "TimePeriod", 8339 "$ref": "TimePeriod",
8340 "name": "period" 8340 "name": "period"
8341 }, 8341 },
8342 { 8342 {
8343 "name": "dataToRemove", 8343 "name": "dataToRemove",
8344 "type": "object", 8344 "type": "object",
8345 "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>).", 8345 "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>).",
8346 "properties": { 8346 "properties": {
8347 "appcache": {
8348 "type": "boolean",
8349 "optional": true,
8350 "description": "Should websites' appcaches be cleared?"
8351 },
8347 "cache": { 8352 "cache": {
8348 "type": "boolean", 8353 "type": "boolean",
8349 "optional": true, 8354 "optional": true,
8350 "description": "Should the browser cache be cleared?" 8355 "description": "Should the browser cache be cleared?"
8351 }, 8356 },
8352 "cookies": { 8357 "cookies": {
8353 "type": "boolean", 8358 "type": "boolean",
8354 "optional": true, 8359 "optional": true,
8355 "description": "Should the browser's cookies be cleared?" 8360 "description": "Should the browser's cookies be cleared?"
8356 }, 8361 },
8357 "downloads": { 8362 "downloads": {
8358 "type": "boolean", 8363 "type": "boolean",
8359 "optional": true, 8364 "optional": true,
8360 "description": "Should the browser's download list be cleared?" 8365 "description": "Should the browser's download list be cleared?"
8361 }, 8366 },
8367 "fileSystems": {
8368 "type": "boolean",
8369 "optional": true,
8370 "description": "Should websites' file systems be cleared?"
8371 },
8362 "formData": { 8372 "formData": {
8363 "type": "boolean", 8373 "type": "boolean",
8364 "optional": true, 8374 "optional": true,
8365 "description": "Should stored form data be cleared?" 8375 "description": "Should stored form data be cleared?"
8366 }, 8376 },
8367 "history": { 8377 "history": {
8368 "type": "boolean", 8378 "type": "boolean",
8369 "optional": true, 8379 "optional": true,
8370 "description": "Should the browser's history be cleared?" 8380 "description": "Should the browser's history be cleared?"
8371 }, 8381 },
8382 "indexedDB": {
8383 "type": "boolean",
8384 "optional": true,
8385 "description": "Should websites' IndexedDB data be cleared?"
8386 },
8387 "localStorage": {
8388 "type": "boolean",
8389 "optional": true,
8390 "description": "Should websites' local storage data be cleared?"
8391 },
8392 "lsoData": {
8393 "type": "boolean",
8394 "optional": true,
8395 "description": "Should plugins' Local Shared Object data be clea red?"
8396 },
8372 "passwords": { 8397 "passwords": {
8373 "type": "boolean", 8398 "type": "boolean",
8374 "optional": true, 8399 "optional": true,
8375 "description": "Should the stored passwords be cleared?" 8400 "description": "Should the stored passwords be cleared?"
8401 },
8402 "webSQL": {
8403 "type": "boolean",
8404 "optional": true,
8405 "description": "Should websites' WebSQL data be cleared?"
8376 } 8406 }
8377 } 8407 }
8378 }, 8408 },
8379 { 8409 {
8380 "name": "callback", 8410 "name": "callback",
8381 "type": "function", 8411 "type": "function",
8382 "description": "Called when deletion has completed.", 8412 "description": "Called when deletion has completed.",
8383 "optional": true, 8413 "optional": true,
8384 "parameters": [] 8414 "parameters": []
8385 } 8415 }
8386 ] 8416 ]
8387 }, 8417 },
8388 { 8418 {
8419 "name": "appcache",
8420 "description": "Clears websites' appcache data.",
8421 "type": "function",
8422 "parameters": [
8423 {
8424 "$ref": "TimePeriod",
8425 "name": "period"
8426 },
8427 {
8428 "name": "callback",
8429 "type": "function",
8430 "description": "Called when websites' appcache data has been cleared .",
8431 "optional": true,
8432 "parameters": []
8433 }
8434 ]
8435 },
8436 {
8389 "name": "cache", 8437 "name": "cache",
8390 "description": "Clears the browser's cache.", 8438 "description": "Clears the browser's cache.",
8391 "type": "function", 8439 "type": "function",
8392 "parameters": [ 8440 "parameters": [
8393 { 8441 {
8394 "$ref": "TimePeriod", 8442 "$ref": "TimePeriod",
8395 "name": "period" 8443 "name": "period"
8396 }, 8444 },
8397 { 8445 {
8398 "name": "callback", 8446 "name": "callback",
8399 "type": "function", 8447 "type": "function",
8400 "description": "Called when the browser's cache has cleared.", 8448 "description": "Called when the browser's cache has been cleared.",
8401 "optional": true, 8449 "optional": true,
8402 "parameters": [] 8450 "parameters": []
8403 } 8451 }
8404 ] 8452 ]
8405 }, 8453 },
8406 { 8454 {
8407 "name": "cookies", 8455 "name": "cookies",
8408 "description": "Clears the browser's cookies and site data.", 8456 "description": "Clears the browser's cookies.",
8409 "type": "function", 8457 "type": "function",
8410 "parameters": [ 8458 "parameters": [
8411 { 8459 {
8412 "$ref": "TimePeriod", 8460 "$ref": "TimePeriod",
8413 "name": "period" 8461 "name": "period"
8414 }, 8462 },
8415 { 8463 {
8416 "name": "callback", 8464 "name": "callback",
8417 "type": "function", 8465 "type": "function",
8418 "description": "Called when the browser's cookies and site data have been cleared.", 8466 "description": "Called when the browser's cookies have been cleared. ",
8419 "optional": true, 8467 "optional": true,
8420 "parameters": [] 8468 "parameters": []
8421 } 8469 }
8422 ] 8470 ]
8423 }, 8471 },
8424 { 8472 {
8425 "name": "downloads", 8473 "name": "downloads",
8426 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).", 8474 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).",
8427 "type": "function", 8475 "type": "function",
8428 "parameters": [ 8476 "parameters": [
8429 { 8477 {
8430 "$ref": "TimePeriod", 8478 "$ref": "TimePeriod",
8431 "name": "period" 8479 "name": "period"
8432 }, 8480 },
8433 { 8481 {
8434 "name": "callback", 8482 "name": "callback",
8435 "type": "function", 8483 "type": "function",
8436 "description": "Called when the browser's list of downloaded files h as been cleared.", 8484 "description": "Called when the browser's list of downloaded files h as been cleared.",
8437 "optional": true, 8485 "optional": true,
8438 "parameters": [] 8486 "parameters": []
8439 } 8487 }
8440 ] 8488 ]
8441 }, 8489 },
8442 { 8490 {
8491 "name": "fileSystems",
8492 "description": "Clears websites' file system data.",
8493 "type": "function",
8494 "parameters": [
8495 {
8496 "$ref": "TimePeriod",
8497 "name": "period"
8498 },
8499 {
8500 "name": "callback",
8501 "type": "function",
8502 "description": "Called when websites' file systems have been cleared .",
8503 "optional": true,
8504 "parameters": []
8505 }
8506 ]
8507 },
8508 {
8443 "name": "formData", 8509 "name": "formData",
8444 "description": "Clears the browser's stored form data (autofill).", 8510 "description": "Clears the browser's stored form data (autofill).",
8445 "type": "function", 8511 "type": "function",
8446 "parameters": [ 8512 "parameters": [
8447 { 8513 {
8448 "$ref": "TimePeriod", 8514 "$ref": "TimePeriod",
8449 "name": "period" 8515 "name": "period"
8450 }, 8516 },
8451 { 8517 {
8452 "name": "callback", 8518 "name": "callback",
(...skipping 16 matching lines...) Expand all
8469 { 8535 {
8470 "name": "callback", 8536 "name": "callback",
8471 "type": "function", 8537 "type": "function",
8472 "description": "Called when the browser's history has cleared.", 8538 "description": "Called when the browser's history has cleared.",
8473 "optional": true, 8539 "optional": true,
8474 "parameters": [] 8540 "parameters": []
8475 } 8541 }
8476 ] 8542 ]
8477 }, 8543 },
8478 { 8544 {
8545 "name": "indexedDB",
8546 "description": "Clears websites' IndexedDB data.",
8547 "type": "function",
8548 "parameters": [
8549 {
8550 "$ref": "TimePeriod",
8551 "name": "period"
8552 },
8553 {
8554 "name": "callback",
8555 "type": "function",
8556 "description": "Called when websites' IndexedDB data has been cleare d.",
8557 "optional": true,
8558 "parameters": []
8559 }
8560 ]
8561 },
8562 {
8563 "name": "localStorage",
8564 "description": "Clears websites' local storage data.",
8565 "type": "function",
8566 "parameters": [
8567 {
8568 "$ref": "TimePeriod",
8569 "name": "period"
8570 },
8571 {
8572 "name": "callback",
8573 "type": "function",
8574 "description": "Called when websites' local storage has been cleared .",
8575 "optional": true,
8576 "parameters": []
8577 }
8578 ]
8579 },
8580 {
8581 "name": "lsoData",
8582 "description": "Clears plugins' Local Storage Object data.",
8583 "type": "function",
8584 "parameters": [
8585 {
8586 "$ref": "TimePeriod",
8587 "name": "period"
8588 },
8589 {
8590 "name": "callback",
8591 "type": "function",
8592 "description": "Called when plugins' Local Storage Data has been cle ared.",
8593 "optional": true,
8594 "parameters": []
8595 }
8596 ]
8597 },
8598 {
8479 "name": "passwords", 8599 "name": "passwords",
8480 "description": "Clears the browser's stored passwords.", 8600 "description": "Clears the browser's stored passwords.",
8481 "type": "function", 8601 "type": "function",
8482 "parameters": [ 8602 "parameters": [
8483 { 8603 {
8484 "$ref": "TimePeriod", 8604 "$ref": "TimePeriod",
8485 "name": "period" 8605 "name": "period"
8486 }, 8606 },
8487 { 8607 {
8488 "name": "callback", 8608 "name": "callback",
8489 "type": "function", 8609 "type": "function",
8490 "description": "Called when the browser's passwords have been cleare d.", 8610 "description": "Called when the browser's passwords have been cleare d.",
8491 "optional": true, 8611 "optional": true,
8492 "parameters": [] 8612 "parameters": []
8493 } 8613 }
8494 ] 8614 ]
8615 },
8616 {
8617 "name": "webSQL",
8618 "description": "Clears websites' WebSQL data.",
8619 "type": "function",
8620 "parameters": [
8621 {
8622 "$ref": "TimePeriod",
8623 "name": "period"
8624 },
8625 {
8626 "name": "callback",
8627 "type": "function",
8628 "description": "Called when websites' WebSQL databases have been cle ared.",
8629 "optional": true,
8630 "parameters": []
8631 }
8632 ]
8495 } 8633 }
8496 ] 8634 ]
8497 } 8635 }
8498 ] 8636 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698