| Index: third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
|
| diff --git a/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h b/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
|
| index 5c105eb3cc4c1cfd42f9bb020694098ea576ec73..bb4cecab5b107085048cc157c7f9bd19283856c7 100644
|
| --- a/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
|
| +++ b/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
|
| @@ -31,9 +31,10 @@ class CORE_EXPORT ParentFrameTaskRunners final : public GarbageCollectedFinalize
|
| WTF_MAKE_NONCOPYABLE(ParentFrameTaskRunners);
|
|
|
| public:
|
| - // LocalFrame could be nullptr if the worker is not associated with a
|
| - // particular local frame.
|
| - explicit ParentFrameTaskRunners(LocalFrame*);
|
| + static ParentFrameTaskRunners* create(LocalFrame* frame)
|
| + {
|
| + return new ParentFrameTaskRunners(frame);
|
| + }
|
|
|
| // Might return nullptr for unsupported task types.
|
| WebTaskRunner* get(TaskType);
|
| @@ -43,6 +44,10 @@ public:
|
| private:
|
| using TaskRunnerHashMap = HashMap<TaskType, WebTaskRunner*, WTF::IntHash<TaskType>, TaskTypeTraits>;
|
|
|
| + // LocalFrame could be nullptr if the worker is not associated with a
|
| + // particular local frame.
|
| + explicit ParentFrameTaskRunners(LocalFrame*);
|
| +
|
| void contextDestroyed() override;
|
|
|
| Mutex m_taskRunnersMutex;
|
|
|