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

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: One at a time tests. 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 7503 matching lines...) Expand 10 before | Expand all | Expand 10 after
7514 "name": "result", 7514 "name": "result",
7515 "type": "string", 7515 "type": "string",
7516 "description": "A string result code. The value is non-empty on success only in tests.", 7516 "description": "A string result code. The value is non-empty on success only in tests.",
7517 "optional": "true" 7517 "optional": "true"
7518 } 7518 }
7519 ] 7519 ]
7520 } 7520 }
7521 ] 7521 ]
7522 } 7522 }
7523 ] 7523 ]
7524 },
7525 {
7526 "namespace": "experimental.clear",
7527 "functions": [
7528 {
7529 "name": "browsingData",
7530 "description": "Clears data generated by browsing within a particular ti meframe.",
7531 "type": "function",
7532 "parameters": [
7533 {
7534 "name": "timePeriod",
7535 "type": "string",
7536 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
Bernhard Bauer 2011/08/16 09:49:36 I think you could pull this into a type?
Mike West 2011/08/16 11:05:56 Done.
7537 "description": "The timeframe inside of which to delete browsing dat a. Passing 'last_day', for example, will delete all browsing data that was touch ed between 24 hours ago and right now, inclusive."
7538 },
7539 {
7540 "name": "dataToRemove",
7541 "type": "object",
7542 "properties": {
7543 "cache": {
7544 "type": "boolean",
7545 "optional": true,
7546 "description": "Should the browser cache be cleared?"
7547 },
7548 "cookies": {
7549 "type": "boolean",
7550 "optional": true,
7551 "description": "Should the browser's cookies be cleared?"
7552 },
7553 "downloads": {
7554 "type": "boolean",
7555 "optional": true,
7556 "description": "Should the browser's download list be cleared?"
7557 },
7558 "formData": {
7559 "type": "boolean",
7560 "optional": true,
7561 "description": "Should stored form data be cleared?"
7562 },
7563 "history": {
7564 "type": "boolean",
7565 "optional": true,
7566 "description": "Should the browser's history be cleared?"
7567 },
7568 "passwords": {
7569 "type": "boolean",
7570 "optional": true,
7571 "description": "Should the stored passwords be cleared?"
7572 }
7573 }
7574 },
7575 {
7576 "name": "callback",
7577 "type": "function",
7578 "description": "Called when deletion has completed.",
7579 "optional": true,
7580 "parameters": [
7581 {
7582 "name": "result",
7583 "type": "boolean",
7584 "description": "Was the data deletion successful?"
7585 }
7586 ]
7587 }
7588 ]
7589 },
7590 {
7591 "name": "cache",
7592 "description": "Clears the browser's cache.",
7593 "type": "function",
7594 "parameters": [
7595 {
7596 "name": "timePeriod",
7597 "type": "string",
7598 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7599 "description": "The timeframe inside of which to delete cached data. Passing 'last_day', for example, will delete all browsing data that was touched between 24 hours ago and right now, inclusive."
7600 },
7601 {
7602 "name": "callback",
7603 "type": "function",
7604 "description": "Called when the browser's cache has cleared.",
7605 "optional": true,
7606 "parameters": [
7607 {
7608 "name": "result",
7609 "type": "boolean",
7610 "description": "Was the data deletion successful?"
7611 }
7612 ]
7613 }
7614 ]
7615 },
7616 {
7617 "name": "cookies",
7618 "description": "Clears the browser's cookies and site data.",
7619 "type": "function",
7620 "parameters": [
7621 {
7622 "name": "timePeriod",
7623 "type": "string",
7624 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7625 "description": "The timeframe inside of which to delete cookies."
7626 },
7627 {
7628 "name": "callback",
7629 "type": "function",
7630 "description": "Called when the browser's cookies and site data have been cleared.",
7631 "optional": true,
7632 "parameters": [
7633 {
7634 "name": "result",
7635 "type": "boolean",
7636 "description": "Was the data deletion successful?"
7637 }
7638 ]
7639 }
7640 ]
7641 },
7642 {
7643 "name": "downloads",
7644 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).",
7645 "type": "function",
7646 "parameters": [
7647 {
7648 "name": "timePeriod",
7649 "type": "string",
7650 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7651 "description": "The timeframe inside of which to delete listed downl oaded files."
7652 },
7653 {
7654 "name": "callback",
7655 "type": "function",
7656 "description": "Called when the browser's list of downloaded files h as been cleared.",
7657 "optional": true,
7658 "parameters": [
7659 {
7660 "name": "result",
7661 "type": "boolean",
7662 "description": "Was the data deletion successful?"
7663 }
7664 ]
7665 }
7666 ]
7667 },
7668 {
7669 "name": "formData",
7670 "description": "Clears the browser's stored form data (autofill).",
7671 "type": "function",
7672 "parameters": [
7673 {
7674 "name": "timePeriod",
7675 "type": "string",
7676 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7677 "description": "The timeframe inside of which to delete form data."
7678 },
7679 {
7680 "name": "callback",
7681 "type": "function",
7682 "description": "Called when the browser's form data has been cleared .",
7683 "optional": true,
7684 "parameters": [
7685 {
7686 "name": "result",
7687 "type": "boolean",
7688 "description": "Was the data deletion successful?"
7689 }
7690 ]
7691 }
7692 ]
7693 },
7694 {
7695 "name": "history",
7696 "description": "Clears the browser's history.",
7697 "type": "function",
7698 "parameters": [
7699 {
7700 "name": "timePeriod",
7701 "type": "string",
7702 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7703 "description": "The timeframe inside of which to delete browsing his tory."
7704 },
7705 {
7706 "name": "callback",
7707 "type": "function",
7708 "description": "Called when the browser's history has cleared.",
7709 "optional": true,
7710 "parameters": [
7711 {
7712 "name": "result",
7713 "type": "boolean",
7714 "description": "Was the data deletion successful?"
7715 }
7716 ]
7717 }
7718 ]
7719 },
7720 {
7721 "name": "passwords",
7722 "description": "Clears the browser's stored passwords.",
7723 "type": "function",
7724 "parameters": [
7725 {
7726 "name": "timePeriod",
7727 "type": "string",
7728 "enum": ["last_hour", "last_day", "last_week", "last_month", "everyt hing"],
7729 "description": "The timeframe inside of which to delete stored passw ords."
7730 },
7731 {
7732 "name": "callback",
7733 "type": "function",
7734 "description": "Called when the browser's passwords have been cleare d.",
7735 "optional": true,
7736 "parameters": [
7737 {
7738 "name": "result",
7739 "type": "boolean",
7740 "description": "Was the data deletion successful?"
7741 }
7742 ]
7743 }
7744 ]
7745 }
7746 ]
7524 } 7747 }
7525 ] 7748 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698