diff --git a/interfaces/budget-api.idl b/interfaces/budget-api.idl new file mode 100644 index 00000000000000..fc86f415aeafd7 --- /dev/null +++ b/interfaces/budget-api.idl @@ -0,0 +1,32 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Web Budget API (https://wicg.github.io/budget-api/) + +[Exposed=Window] +partial interface Navigator { + [SameObject] readonly attribute BudgetService budget; +}; + +[Exposed=Worker] +partial interface WorkerNavigator { + [SameObject] readonly attribute BudgetService budget; +}; + +[Exposed=(Window,Worker)] +interface BudgetService { + Promise getCost(OperationType operation); + Promise> getBudget(); + + Promise reserve(OperationType operation); +}; + +[Exposed=(Window,Worker)] +interface BudgetState { + readonly attribute double budgetAt; + readonly attribute DOMTimeStamp time; +}; + +enum OperationType { + "silent-push" +};