Index: Source/core/workers/WorkerThread.h |
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h |
index e6d67fa01cdacbe3a8d26eee247a1bc54b487237..ad91aeb5462337c09345ddcf435b40b2d7eb63c2 100644 |
--- a/Source/core/workers/WorkerThread.h |
+++ b/Source/core/workers/WorkerThread.h |
@@ -128,6 +128,9 @@ protected: |
virtual void destroyIsolate(); |
virtual void terminateV8Execution(); |
+ // This is protected virtual for testing. |
+ virtual bool doIdleGc(double deadlineSeconds); |
+ |
private: |
friend class WorkerSharedTimer; |
friend class WorkerMicrotaskRunner; |
@@ -137,7 +140,7 @@ private: |
void initialize(); |
void shutdown(); |
- void idleHandler(); |
+ void performIdleWork(double deadlineSeconds); |
void postDelayedTask(PassOwnPtr<ExecutionContextTask>, long long delayMs); |
void postDelayedTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>, long long delayMs); |
@@ -148,6 +151,7 @@ private: |
RefPtr<WorkerLoaderProxy> m_workerLoaderProxy; |
WorkerReportingProxy& m_workerReportingProxy; |
+ RawPtr<WebScheduler> m_webScheduler; // Not owned. |
RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorController; |
Mutex m_workerInspectorControllerMutex; |