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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: ModuleScriptLoaderTest Created 3 years, 11 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
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

Powered by Google App Engine
This is Rietveld 408576698