Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h |
| diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h b/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0f61320b8859096d82806f4f66b18daad8bc7ef1 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h |
| @@ -0,0 +1,26 @@ |
| +// 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 ModuleScriptLoaderClient_h |
| +#define ModuleScriptLoaderClient_h |
| + |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class ModuleScript; |
| + |
| +// A ModuleScriptLoaderClient is notified when a single module script load is |
| +// complete. |
| +// Note: Its corresponding module map entry is typically not yet created at the |
| +// time of callback. |
| +class ModuleScriptLoaderClient : public GarbageCollectedMixin { |
|
yhirano
2017/01/06 07:27:01
A virtual destructor is needed.
kouhei (in TOK)
2017/01/11 01:41:57
Done.
|
| + private: |
| + friend class ModuleScriptLoader; |
| + virtual void notifyFinishedNewSingleModule(ModuleScript*) = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |