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