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/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/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 OriginTrialsTest; |
| 15 |
14 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>,
public ScriptWrappable { | 16 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>,
public ScriptWrappable { |
15 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
16 public: | 18 public: |
17 static WorkerInternals* create(ScriptState*); | 19 static WorkerInternals* create(ScriptState*); |
18 virtual ~WorkerInternals(); | 20 virtual ~WorkerInternals(); |
| 21 OriginTrialsTest* originTrialsTest() const; |
19 | 22 |
20 DEFINE_INLINE_TRACE() {} | 23 DEFINE_INLINE_TRACE() {} |
21 private: | 24 private: |
22 explicit WorkerInternals(ScriptState*); | 25 explicit WorkerInternals(ScriptState*); |
23 }; | 26 }; |
24 | 27 |
25 } // namespace blink | 28 } // namespace blink |
26 | 29 |
27 #endif // WorkerInternals_h | 30 #endif // WorkerInternals_h |
OLD | NEW |