| 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 class ScriptState; |
| 15 | 15 |
| 16 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, | 16 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, |
| 17 public ScriptWrappable { | 17 public ScriptWrappable { |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static WorkerInternals* create() { return new WorkerInternals(); } | 21 static WorkerInternals* create() { return new WorkerInternals(); } |
| 22 virtual ~WorkerInternals(); | 22 virtual ~WorkerInternals(); |
| 23 | 23 |
| 24 OriginTrialsTest* originTrialsTest() const; | 24 OriginTrialsTest* originTrialsTest() const; |
| 25 void countFeature(ScriptState*, uint32_t feature); | 25 void countFeature(ScriptState*, uint32_t feature); |
| 26 void countDeprecation(ScriptState*, uint32_t feature); | 26 void countDeprecation(ScriptState*, uint32_t feature); |
| 27 | 27 |
| 28 void collectGarbage(ScriptState*); |
| 29 |
| 28 DEFINE_INLINE_TRACE() {} | 30 DEFINE_INLINE_TRACE() {} |
| 29 | 31 |
| 30 private: | 32 private: |
| 31 explicit WorkerInternals(); | 33 explicit WorkerInternals(); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace blink | 36 } // namespace blink |
| 35 | 37 |
| 36 #endif // WorkerInternals_h | 38 #endif // WorkerInternals_h |
| OLD | NEW |