blob: c068e2d4b385e5b4c13e725704f396cf7c7c2585 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WorkerModuleTreeClient_h
#define WorkerModuleTreeClient_h
#include "core/dom/Modulator.h"
#include "platform/heap/GarbageCollected.h"
namespace blink {
class ModuleScript;
// A ModuleTreeClient that lives on the worker context's thread.
class WorkerModuleTreeClient final : public ModuleTreeClient {
public:
explicit WorkerModuleTreeClient(Modulator*);
// Implements ModuleTreeClient.
void NotifyModuleTreeLoadFinished(ModuleScript*) final;
void Trace(blink::Visitor*) override;
private:
Member<Modulator> modulator_;
};
} // namespace blink
#endif // WorkerModuleTreeClient_h