| Index: third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
|
| diff --git a/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom b/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
|
| index aee3d7589b3e609f7583e99049725a4769800616..c84953bd79c7fdd5533c56ff6d7e3111adc2e36c 100644
|
| --- a/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
|
| +++ b/third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom
|
| @@ -7,7 +7,16 @@ module blink.mojom;
|
| import "url/mojo/origin.mojom";
|
|
|
| enum BudgetOperationType {
|
| - SILENT_PUSH
|
| + SILENT_PUSH,
|
| + INVALID_OPERATION
|
| +};
|
| +
|
| +enum BudgetServiceErrorType {
|
| + NONE,
|
| + // Returned if there is an issue reading or writing the budget database.
|
| + DATABASE_ERROR,
|
| + // Returned if functionality is called which is not yet implemented.
|
| + NOT_SUPPORTED
|
| };
|
|
|
| // Structure representing the budget at points in time in the future.
|
| @@ -25,6 +34,7 @@ struct BudgetState {
|
| // for the budget available for an origin.
|
| interface BudgetService {
|
| GetCost(BudgetOperationType operation) => (double cost);
|
| - GetBudget(url.mojom.Origin origin) => (array<BudgetState> budget);
|
| + GetBudget(url.mojom.Origin origin) => (BudgetServiceErrorType error_type, array<BudgetState> budget);
|
| + Reserve(url.mojom.Origin origin, BudgetOperationType operation) => (BudgetServiceErrorType error_type, bool success);
|
| };
|
|
|
|
|