DescriptionStart plumbing connections from the BudgetManager to the BudgetDatabase
This adds the BudgetDatabase as a member of the manager, paving the way
for the switch from using the prefs to store budget to using the proto
database.
This also adds Reserve and Consume entrypoints on the BudgetManager.
Reserve is the entrypoint for the Mojo service to enable Javascript to
purchase reservations with budget. Consume is the entrypoint for clients
of the Manager to determine if an origin should be allowed an action,
either because it has a reservation or because it has enough budget to
cover the cost.
BUG=617971
Committed: https://crrev.com/c3fb045f4ff19a65873bbcce47ffca0dd1a3b570
Cr-Commit-Position: refs/heads/master@{#416260}
Patch Set 1 #Patch Set 2 : Added SyncCache step in BudgetDatabase and cleaned up lots of methods #Patch Set 3 : Updated budget_database_unittests #Patch Set 4 : Rebase and remove BudgetManager::CostType references #
Total comments: 12
Patch Set 5 : Code review cleanup #Patch Set 6 : Fix the task runner #
Dependent Patchsets: Messages
Total messages: 18 (12 generated)
|