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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 "modules/webaudio/AudioWorkletThread.h" 5 #include "modules/webaudio/AudioWorkletThread.h"
6 6
7 #include "core/workers/WorkerBackingThread.h" 7 #include "core/workers/WorkerBackingThread.h"
8 #include "core/workers/WorkerThreadStartupData.h" 8 #include "core/workers/WorkerThreadStartupData.h"
9 #include "modules/webaudio/AudioWorkletGlobalScope.h" 9 #include "modules/webaudio/AudioWorkletGlobalScope.h"
10 #include "platform/CrossThreadFunctional.h" 10 #include "platform/CrossThreadFunctional.h"
11 #include "platform/WaitableEvent.h" 11 #include "platform/WaitableEvent.h"
12 #include "platform/WebThreadSupportingGC.h" 12 #include "platform/WebThreadSupportingGC.h"
13 #include "platform/tracing/TraceEvent.h" 13 #include "platform/tracing/TraceEvent.h"
14 #include "platform/weborigin/SecurityOrigin.h" 14 #include "platform/weborigin/SecurityOrigin.h"
15 #include "public/platform/Platform.h" 15 #include "public/platform/Platform.h"
16 #include "wtf/Assertions.h" 16 #include "wtf/Assertions.h"
17 #include "wtf/PtrUtil.h" 17 #include "wtf/PtrUtil.h"
18 #include <memory> 18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 template class WorkletThreadHolder<AudioWorkletThread>; 22 template class WorkletThreadHolder<AudioWorkletThread>;
23 23
24 std::unique_ptr<AudioWorkletThread> AudioWorkletThread::create( 24 std::unique_ptr<AudioWorkletThread> AudioWorkletThread::create(
25 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, 25 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy,
26 WorkerReportingProxy& workerReportingProxy) { 26 WorkerReportingProxy& workerReportingProxy) {
27 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("audio-worklet"), 27 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("audio-worklet"),
28 "AudioWorkletThread::create"); 28 "AudioWorkletThread::create");
29 DCHECK(isMainThread()); 29 DCHECK(isMainThread());
30 return wrapUnique(new AudioWorkletThread(std::move(workerLoaderProxy), 30 return WTF::wrapUnique(new AudioWorkletThread(std::move(workerLoaderProxy),
31 workerReportingProxy)); 31 workerReportingProxy));
32 } 32 }
33 33
34 AudioWorkletThread::AudioWorkletThread( 34 AudioWorkletThread::AudioWorkletThread(
35 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, 35 PassRefPtr<WorkerLoaderProxy> workerLoaderProxy,
36 WorkerReportingProxy& workerReportingProxy) 36 WorkerReportingProxy& workerReportingProxy)
37 : WorkerThread(std::move(workerLoaderProxy), workerReportingProxy) {} 37 : WorkerThread(std::move(workerLoaderProxy), workerReportingProxy) {}
38 38
39 AudioWorkletThread::~AudioWorkletThread() {} 39 AudioWorkletThread::~AudioWorkletThread() {}
40 40
41 WorkerBackingThread& AudioWorkletThread::workerBackingThread() { 41 WorkerBackingThread& AudioWorkletThread::workerBackingThread() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 securityOrigin->transferPrivilegesFrom( 88 securityOrigin->transferPrivilegesFrom(
89 std::move(startupData->m_starterOriginPrivilegeData)); 89 std::move(startupData->m_starterOriginPrivilegeData));
90 } 90 }
91 91
92 return AudioWorkletGlobalScope::create( 92 return AudioWorkletGlobalScope::create(
93 startupData->m_scriptURL, startupData->m_userAgent, 93 startupData->m_scriptURL, startupData->m_userAgent,
94 securityOrigin.release(), this->isolate(), this); 94 securityOrigin.release(), this->isolate(), this);
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698