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

Unified Diff: third_party/WebKit/Source/modules/budget/BudgetService.h

Issue 2229283003: Convert Budget to BudgetService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated global interface list 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
Index: third_party/WebKit/Source/modules/budget/BudgetService.h
diff --git a/third_party/WebKit/Source/modules/budget/Budget.h b/third_party/WebKit/Source/modules/budget/BudgetService.h
similarity index 65%
rename from third_party/WebKit/Source/modules/budget/Budget.h
rename to third_party/WebKit/Source/modules/budget/BudgetService.h
index 186f7ca2553e8c4d5b52786dec9f4f86242af652..6d858bc7977e90f5de0f22aaf1fc36c005cadaf8 100644
--- a/third_party/WebKit/Source/modules/budget/Budget.h
+++ b/third_party/WebKit/Source/modules/budget/BudgetService.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef Budget_h
-#define Budget_h
+#ifndef BudgetService_h
+#define BudgetService_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/ModulesExport.h"
@@ -13,16 +13,16 @@ namespace blink {
class ScriptPromise;
class ScriptState;
-// This is the entry point into the browser for the Budget API, which is
+// This is the entry point into the browser for the BudgetService API, which is
// designed to give origins the ability to perform background operations
// on the user's behalf.
-class Budget final : public GarbageCollected<Budget>, public ScriptWrappable {
+class BudgetService final : public GarbageCollected<BudgetService>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static Budget* create()
+ static BudgetService* create()
{
- return new Budget();
+ return new BudgetService();
}
ScriptPromise getCost(ScriptState*, const AtomicString& actionType);
@@ -31,9 +31,9 @@ public:
DEFINE_INLINE_TRACE() {}
private:
- Budget();
+ BudgetService();
};
} // namespace blink
-#endif // Budget_h
+#endif // BudgetService_h
« no previous file with comments | « third_party/WebKit/Source/modules/budget/Budget.idl ('k') | third_party/WebKit/Source/modules/budget/BudgetService.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698