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

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

Issue 2448863002: [DO NOT COMMIT] WorkletThreadHolader (Closed)
Patch Set: remove CORE_EXPORT 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
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 "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // The backing thread is cleared by clearSharedBackingThread(). 30 // The backing thread is cleared by clearSharedBackingThread().
31 void clearWorkerBackingThread() override {} 31 void clearWorkerBackingThread() override {}
32 32
33 bool shouldAttachThreadDebugger() const override { return false; } 33 bool shouldAttachThreadDebugger() const override { return false; }
34 34
35 // This may block the main thread. 35 // This may block the main thread.
36 static void collectAllGarbage(); 36 static void collectAllGarbage();
37 37
38 static void ensureSharedBackingThread(); 38 static void ensureSharedBackingThread();
39 static void createSharedBackingThreadForTest();
40
41 static void clearSharedBackingThread(); 39 static void clearSharedBackingThread();
42 40
43 protected: 41 protected:
44 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( 42 WorkerOrWorkletGlobalScope* createWorkerGlobalScope(
45 std::unique_ptr<WorkerThreadStartupData>) final; 43 std::unique_ptr<WorkerThreadStartupData>) final;
46 44
47 bool isOwningBackingThread() const override { return false; } 45 bool isOwningBackingThread() const override { return false; }
48 46
49 private: 47 private:
50 explicit AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>, 48 explicit AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>,
51 WorkerReportingProxy&); 49 WorkerReportingProxy&);
52 }; 50 };
53 51
54 } // namespace blink 52 } // namespace blink
55 53
56 #endif // AudioWorkletThread_h 54 #endif // AudioWorkletThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698