| 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 BudgetState_h | 5 #ifndef BudgetState_h |
| 6 #define BudgetState_h | 6 #define BudgetState_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "core/dom/DOMTimeStamp.h" | 8 #include "core/dom/DOMTimeStamp.h" |
| 9 #include "platform/bindings/ScriptWrappable.h" |
| 10 #include "platform/heap/GarbageCollected.h" | 10 #include "platform/heap/GarbageCollected.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class BudgetService; | 14 class BudgetService; |
| 15 | 15 |
| 16 // This exposes the BudgetState interface which is returned from BudgetService | 16 // This exposes the BudgetState interface which is returned from BudgetService |
| 17 // when there is a GetBudget call. | 17 // when there is a GetBudget call. |
| 18 class BudgetState final : public GarbageCollected<BudgetState>, | 18 class BudgetState final : public GarbageCollected<BudgetState>, |
| 19 public ScriptWrappable { | 19 public ScriptWrappable { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 DEFINE_INLINE_TRACE() {} | 33 DEFINE_INLINE_TRACE() {} |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 double budget_at_; | 36 double budget_at_; |
| 37 DOMTimeStamp time_; | 37 DOMTimeStamp time_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| 41 | 41 |
| 42 #endif // BudgetState_h | 42 #endif // BudgetState_h |
| OLD | NEW |