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 WorkerInternals_h | 5 #ifndef WorkerInternals_h |
6 #define WorkerInternals_h | 6 #define WorkerInternals_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/GarbageCollected.h" | 9 #include "platform/heap/GarbageCollected.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class OriginTrialsTest; | 13 class OriginTrialsTest; |
| 14 class ScriptState; |
14 | 15 |
15 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, | 16 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, |
16 public ScriptWrappable { | 17 public ScriptWrappable { |
17 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
18 | 19 |
19 public: | 20 public: |
20 static WorkerInternals* create() { return new WorkerInternals(); } | 21 static WorkerInternals* create() { return new WorkerInternals(); } |
21 virtual ~WorkerInternals(); | 22 virtual ~WorkerInternals(); |
| 23 |
22 OriginTrialsTest* originTrialsTest() const; | 24 OriginTrialsTest* originTrialsTest() const; |
| 25 void countFeature(ScriptState*, uint32_t useCounterId); |
| 26 void countDeprecation(ScriptState*, uint32_t useCounterId); |
23 | 27 |
24 DEFINE_INLINE_TRACE() {} | 28 DEFINE_INLINE_TRACE() {} |
25 | 29 |
26 private: | 30 private: |
27 explicit WorkerInternals(); | 31 explicit WorkerInternals(); |
28 }; | 32 }; |
29 | 33 |
30 } // namespace blink | 34 } // namespace blink |
31 | 35 |
32 #endif // WorkerInternals_h | 36 #endif // WorkerInternals_h |
OLD | NEW |