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

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

Issue 2724673002: [WIP] Introduce ScriptResourceData
Patch Set: Fix Created 3 years, 8 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/ClassicPendingScript.h
diff --git a/third_party/WebKit/Source/core/dom/ClassicPendingScript.h b/third_party/WebKit/Source/core/dom/ClassicPendingScript.h
index 7110a9083ceb455ed12fc3a3007f47e596f84c08..691572efba27ff5352aac34596bbf7e8b3f77fef 100644
--- a/third_party/WebKit/Source/core/dom/ClassicPendingScript.h
+++ b/third_party/WebKit/Source/core/dom/ClassicPendingScript.h
@@ -59,6 +59,8 @@ class CORE_EXPORT ClassicPendingScript final
void Prefinalize();
+ const ScriptResourceData* ResourceData() const { return resource_data_; }
+
private:
ClassicPendingScript(ScriptElementBase*,
ScriptResource*,
@@ -86,6 +88,8 @@ class CORE_EXPORT ClassicPendingScript final
// doesn't break assumptions.
// TODO(hiroshige): Check the state in more general way.
bool prefinalizer_called_ = false;
+
+ Member<const ScriptResourceData> resource_data_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698