| 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 #include "core/testing/WorkerInternals.h" | 5 #include "core/testing/WorkerInternals.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | |
| 9 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 10 #include "core/frame/Deprecation.h" | 9 #include "core/frame/Deprecation.h" |
| 11 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
| 12 #include "core/testing/OriginTrialsTest.h" | 11 #include "core/testing/OriginTrialsTest.h" |
| 12 #include "platform/bindings/ScriptState.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 WorkerInternals::~WorkerInternals() {} | 16 WorkerInternals::~WorkerInternals() {} |
| 17 | 17 |
| 18 WorkerInternals::WorkerInternals() {} | 18 WorkerInternals::WorkerInternals() {} |
| 19 | 19 |
| 20 OriginTrialsTest* WorkerInternals::originTrialsTest() const { | 20 OriginTrialsTest* WorkerInternals::originTrialsTest() const { |
| 21 return OriginTrialsTest::Create(); | 21 return OriginTrialsTest::Create(); |
| 22 } | 22 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 Deprecation::CountDeprecation(ExecutionContext::From(script_state), | 44 Deprecation::CountDeprecation(ExecutionContext::From(script_state), |
| 45 static_cast<UseCounter::Feature>(feature)); | 45 static_cast<UseCounter::Feature>(feature)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void WorkerInternals::collectGarbage(ScriptState* script_state) { | 48 void WorkerInternals::collectGarbage(ScriptState* script_state) { |
| 49 script_state->GetIsolate()->RequestGarbageCollectionForTesting( | 49 script_state->GetIsolate()->RequestGarbageCollectionForTesting( |
| 50 v8::Isolate::kFullGarbageCollection); | 50 v8::Isolate::kFullGarbageCollection); |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace blink | 53 } // namespace blink |
| OLD | NEW |