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

Side by Side Diff: third_party/WebKit/Source/modules/budget/BudgetState.h

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMTimeStamp.h" 9 #include "core/dom/DOMTimeStamp.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 class Navigator;
16 15
17 // This exposes the BudgetState interface which is returned from BudgetService 16 // This exposes the BudgetState interface which is returned from BudgetService
18 // when there is a GetBudget call. 17 // when there is a GetBudget call.
19 class BudgetState final : public GarbageCollected<BudgetState>, 18 class BudgetState final : public GarbageCollected<BudgetState>,
20 public ScriptWrappable { 19 public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
22 21
23 public: 22 public:
24 BudgetState(); 23 BudgetState();
25 BudgetState(double budgetAt, DOMTimeStamp); 24 BudgetState(double budgetAt, DOMTimeStamp);
26 BudgetState(const BudgetState& other); 25 BudgetState(const BudgetState& other);
27 26
28 double budgetAt() const { return m_budgetAt; } 27 double budgetAt() const { return m_budgetAt; }
29 DOMTimeStamp time() const { return m_time; } 28 DOMTimeStamp time() const { return m_time; }
30 29
31 void setBudgetAt(const double budgetAt) { m_budgetAt = budgetAt; } 30 void setBudgetAt(const double budgetAt) { m_budgetAt = budgetAt; }
32 void setTime(const DOMTimeStamp& time) { m_time = time; } 31 void setTime(const DOMTimeStamp& time) { m_time = time; }
33 32
34 DEFINE_INLINE_TRACE() {} 33 DEFINE_INLINE_TRACE() {}
35 34
36 private: 35 private:
37 double m_budgetAt; 36 double m_budgetAt;
38 DOMTimeStamp m_time; 37 DOMTimeStamp m_time;
39 }; 38 };
40 39
41 } // namespace blink 40 } // namespace blink
42 41
43 #endif // BudgetState_h 42 #endif // BudgetState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698