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

Unified Diff: chrome/browser/budget_service/budget_manager.h

Issue 2265173002: Created Mojo BudgetService implementation in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_service
Patch Set: Remove use of local variable and call GetCost directly. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/budget_service/budget_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/budget_service/budget_manager.h
diff --git a/chrome/browser/budget_service/budget_manager.h b/chrome/browser/budget_service/budget_manager.h
index cbf7b327af4d4fc0add8ec91e0558c92253d4fcd..33a0371fb21ea87a56216200ddb01bce0a2163dd 100644
--- a/chrome/browser/budget_service/budget_manager.h
+++ b/chrome/browser/budget_service/budget_manager.h
@@ -11,6 +11,7 @@
#include "base/callback_forward.h"
#include "base/gtest_prod_util.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom.h"
#include "url/gurl.h"
class Profile;
@@ -34,13 +35,8 @@ class BudgetManager : public KeyedService {
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
- enum class CostType {
- // The cost of silencing a push message.
- SILENT_PUSH = 0,
- };
-
// Query for the base cost for any background processing.
- static double GetCost(CostType type);
+ static double GetCost(blink::mojom::BudgetOperationType type);
using GetBudgetCallback = base::Callback<void(double budget)>;
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/budget_service/budget_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698