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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 <v8.h>
6 #include <memory>
5 #include "bindings/core/v8/SourceLocation.h" 7 #include "bindings/core/v8/SourceLocation.h"
6 #include "bindings/core/v8/V8CacheOptions.h" 8 #include "bindings/core/v8/V8CacheOptions.h"
7 #include "bindings/core/v8/V8GCController.h" 9 #include "bindings/core/v8/V8GCController.h"
8 #include "core/dom/ExecutionContextTask.h" 10 #include "core/dom/ExecutionContextTask.h"
9 #include "core/frame/csp/ContentSecurityPolicy.h" 11 #include "core/frame/csp/ContentSecurityPolicy.h"
10 #include "core/inspector/ConsoleMessage.h" 12 #include "core/inspector/ConsoleMessage.h"
11 #include "core/workers/ParentFrameTaskRunners.h" 13 #include "core/workers/ParentFrameTaskRunners.h"
12 #include "core/workers/WorkerBackingThread.h" 14 #include "core/workers/WorkerBackingThread.h"
13 #include "core/workers/WorkerClients.h" 15 #include "core/workers/WorkerClients.h"
14 #include "core/workers/WorkerGlobalScope.h" 16 #include "core/workers/WorkerGlobalScope.h"
15 #include "core/workers/WorkerLoaderProxy.h" 17 #include "core/workers/WorkerLoaderProxy.h"
16 #include "core/workers/WorkerReportingProxy.h" 18 #include "core/workers/WorkerReportingProxy.h"
17 #include "core/workers/WorkerThread.h" 19 #include "core/workers/WorkerThread.h"
18 #include "core/workers/WorkerThreadLifecycleObserver.h" 20 #include "core/workers/WorkerThreadLifecycleObserver.h"
19 #include "core/workers/WorkerThreadStartupData.h" 21 #include "core/workers/WorkerThreadStartupData.h"
20 #include "platform/CrossThreadFunctional.h" 22 #include "platform/CrossThreadFunctional.h"
21 #include "platform/WaitableEvent.h" 23 #include "platform/WaitableEvent.h"
22 #include "platform/WebThreadSupportingGC.h" 24 #include "platform/WebThreadSupportingGC.h"
23 #include "platform/heap/Handle.h" 25 #include "platform/heap/Handle.h"
24 #include "platform/network/ContentSecurityPolicyParsers.h" 26 #include "platform/network/ContentSecurityPolicyParsers.h"
25 #include "platform/weborigin/KURL.h" 27 #include "platform/weborigin/KURL.h"
26 #include "platform/weborigin/SecurityOrigin.h" 28 #include "platform/weborigin/SecurityOrigin.h"
27 #include "public/platform/WebAddressSpace.h" 29 #include "public/platform/WebAddressSpace.h"
28 #include "testing/gmock/include/gmock/gmock.h" 30 #include "testing/gmock/include/gmock/gmock.h"
29 #include "wtf/CurrentTime.h" 31 #include "wtf/CurrentTime.h"
30 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
31 #include "wtf/PtrUtil.h" 33 #include "wtf/PtrUtil.h"
32 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
33 #include <memory>
34 #include <v8.h>
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class MockWorkerLoaderProxyProvider : public WorkerLoaderProxyProvider { 38 class MockWorkerLoaderProxyProvider : public WorkerLoaderProxyProvider {
39 public: 39 public:
40 MockWorkerLoaderProxyProvider() {} 40 MockWorkerLoaderProxyProvider() {}
41 ~MockWorkerLoaderProxyProvider() override {} 41 ~MockWorkerLoaderProxyProvider() override {}
42 42
43 void postTaskToLoader(const WebTraceLocation&, 43 void postTaskToLoader(const WebTraceLocation&,
44 std::unique_ptr<ExecutionContextTask>) override { 44 std::unique_ptr<ExecutionContextTask>) override {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 inline WorkerOrWorkletGlobalScope* WorkerThreadForTest::createWorkerGlobalScope( 191 inline WorkerOrWorkletGlobalScope* WorkerThreadForTest::createWorkerGlobalScope(
192 std::unique_ptr<WorkerThreadStartupData> startupData) { 192 std::unique_ptr<WorkerThreadStartupData> startupData) {
193 return new FakeWorkerGlobalScope( 193 return new FakeWorkerGlobalScope(
194 startupData->m_scriptURL, startupData->m_userAgent, this, 194 startupData->m_scriptURL, startupData->m_userAgent, this,
195 std::move(startupData->m_starterOriginPrivilegeData), 195 std::move(startupData->m_starterOriginPrivilegeData),
196 std::move(startupData->m_workerClients)); 196 std::move(startupData->m_workerClients));
197 } 197 }
198 198
199 } // namespace blink 199 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698