Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/testing/WorkerInternals.cpp

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/WorkerInternals.h ('k') | third_party/WebKit/Source/core/timing/MemoryInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698