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

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

Issue 2724673002: [WIP] Introduce ScriptResourceData
Patch Set: Compile fix Created 3 years, 4 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 0eabf9677c02d634142b2504ae1df57dea328160..ac4310b2c8a70cf85064ab7930f10ab99dca3e54 100644
--- a/third_party/WebKit/Source/core/dom/ClassicPendingScript.h
+++ b/third_party/WebKit/Source/core/dom/ClassicPendingScript.h
@@ -61,6 +61,8 @@ class CORE_EXPORT ClassicPendingScript final
void Prefinalize();
+ const ScriptResourceData* ResourceData() const { return resource_data_; }
+
private:
// See AdvanceReadyState implementation for valid state transitions.
enum ReadyState {
@@ -108,6 +110,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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/ClassicPendingScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698