| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WorkerNavigatorBudget_h | 5 #ifndef WorkerNavigatorBudget_h |
| 6 #define WorkerNavigatorBudget_h | 6 #define WorkerNavigatorBudget_h |
| 7 | 7 |
| 8 #include "core/workers/WorkerNavigator.h" | 8 #include "core/workers/WorkerNavigator.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/GarbageCollected.h" | 10 #include "platform/heap/GarbageCollected.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class BudgetService; | 15 class BudgetService; |
| 16 class WorkerNavigator; | 16 class WorkerNavigator; |
| 17 | 17 |
| 18 // This exposes the budget object on the WorkerNavigator partial interface. | 18 // This exposes the budget object on the WorkerNavigator partial interface. |
| 19 class WorkerNavigatorBudget final | 19 class WorkerNavigatorBudget final |
| 20 : public GarbageCollected<WorkerNavigatorBudget>, | 20 : public GarbageCollected<WorkerNavigatorBudget>, |
| 21 public Supplement<WorkerNavigator> { | 21 public Supplement<WorkerNavigator> { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 private: | 33 private: |
| 34 explicit WorkerNavigatorBudget(WorkerNavigator&); | 34 explicit WorkerNavigatorBudget(WorkerNavigator&); |
| 35 static const char* SupplementName(); | 35 static const char* SupplementName(); |
| 36 | 36 |
| 37 Member<BudgetService> budget_; | 37 Member<BudgetService> budget_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| 41 | 41 |
| 42 #endif // WorkerNavigatorBudget_h | 42 #endif // WorkerNavigatorBudget_h |
| OLD | NEW |