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

Unified Diff: third_party/WebKit/Source/core/dom/ModuleScript.h

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: snapshot 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
Index: third_party/WebKit/Source/core/dom/ModuleScript.h
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.h b/third_party/WebKit/Source/core/dom/ModuleScript.h
index 5efe745b3db767df8531fd460c6ba0047e8e33c9..4e94f34c3560416a05ebe6bfdd65401ecf64b523 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -6,6 +6,7 @@
#define ModuleScript_h
#include "bindings/core/v8/ScriptModule.h"
+#include "bindings/core/v8/ScriptValue.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "platform/loader/fetch/ResourceLoaderOptions.h"
@@ -41,16 +42,19 @@ class CORE_EXPORT ModuleScript final
void clearRecord() { m_record = ScriptModule(); }
const KURL& baseURL() const { return m_baseURL; }
+ ModuleInstantiationState instantiationState() const {
+ return m_instantiationState;
+ }
+
+ void setInstantiationSuccess();
+ void setInstantiationError(ScriptValue);
+
ParserDisposition parserState() const { return m_parserState; }
WebURLRequest::FetchCredentialsMode credentialsMode() const {
return m_credentialsMode;
}
const String& nonce() const { return m_nonce; }
- ModuleInstantiationState instantiationState() const {
- return m_instantiationState;
- }
-
DECLARE_TRACE();
private:
@@ -81,7 +85,7 @@ class CORE_EXPORT ModuleScript final
ModuleInstantiationState::Uninstantiated;
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-module-script-instantiation-error
- // TODO(kouhei): Add a corresponding member.
+ ScriptValue m_instantiationError;
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-module-script-nonce
const String m_nonce;
« no previous file with comments | « third_party/WebKit/Source/core/dom/ModuleMapTest.cpp ('k') | third_party/WebKit/Source/core/dom/ModuleScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698