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..b992048c4eedab5f63a77a0ba97a1762a2db7de5 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h |
@@ -0,0 +1,31 @@ |
+// 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 { |
+ public: |
+ virtual ~ModuleScriptLoaderClient(){}; |
+ |
+ private: |
+ friend class ModuleScriptLoader; |
+ friend class ModuleMapTestModulator; |
+ |
+ virtual void notifyNewSingleModuleFinished(ModuleScript*) = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |