Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoaderClient.h

Issue 2668283003: [ES6 modules] Introduce ModuleScriptLoaderClient (Closed)
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/core/loader/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698