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

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

Issue 2485633004: Revert of DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef AudioWorkletThread_h 5 #ifndef AudioWorkletThread_h
6 #define AudioWorkletThread_h 6 #define AudioWorkletThread_h
7 7
8 #include "core/workers/WorkerLoaderProxy.h" 8 #include "core/workers/WorkerLoaderProxy.h"
9 #include "core/workers/WorkerThread.h" 9 #include "core/workers/WorkerThread.h"
10 #include "core/workers/WorkletThreadHolder.h" 10 #include "core/workers/WorkletThreadHolder.h"
(...skipping 13 matching lines...) Expand all
24 static std::unique_ptr<AudioWorkletThread> create( 24 static std::unique_ptr<AudioWorkletThread> create(
25 PassRefPtr<WorkerLoaderProxy>, 25 PassRefPtr<WorkerLoaderProxy>,
26 WorkerReportingProxy&); 26 WorkerReportingProxy&);
27 ~AudioWorkletThread() override; 27 ~AudioWorkletThread() override;
28 28
29 WorkerBackingThread& workerBackingThread() override; 29 WorkerBackingThread& workerBackingThread() override;
30 30
31 // The backing thread is cleared by clearSharedBackingThread(). 31 // The backing thread is cleared by clearSharedBackingThread().
32 void clearWorkerBackingThread() override {} 32 void clearWorkerBackingThread() override {}
33 33
34 bool shouldAttachThreadDebugger() const override { return false; }
35
34 // This may block the main thread. 36 // This may block the main thread.
35 static void collectAllGarbage(); 37 static void collectAllGarbage();
36 38
37 static void ensureSharedBackingThread(); 39 static void ensureSharedBackingThread();
38 static void clearSharedBackingThread(); 40 static void clearSharedBackingThread();
39 41
40 static void createSharedBackingThreadForTest(); 42 static void createSharedBackingThreadForTest();
41 43
42 protected: 44 protected:
43 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( 45 WorkerOrWorkletGlobalScope* createWorkerGlobalScope(
44 std::unique_ptr<WorkerThreadStartupData>) final; 46 std::unique_ptr<WorkerThreadStartupData>) final;
45 47
46 bool isOwningBackingThread() const override { return false; } 48 bool isOwningBackingThread() const override { return false; }
47 49
48 private: 50 private:
49 AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); 51 AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
50 }; 52 };
51 53
52 } // namespace blink 54 } // namespace blink
53 55
54 #endif // AudioWorkletThread_h 56 #endif // AudioWorkletThread_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698