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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp

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/bindings/core/v8/ScriptSourceCode.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
index 640c955ef59294b475eceeb9c6fd454352fdf648..4f9a96203a2fb0ea11d1814e76044112dfcffd97 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
@@ -4,6 +4,8 @@
#include "bindings/core/v8/ScriptSourceCode.h"
+#include "platform/HTTPNames.h"
+
namespace blink {
ScriptSourceCode::ScriptSourceCode()
@@ -18,7 +20,7 @@ ScriptSourceCode::ScriptSourceCode(const String& source,
url_.RemoveFragmentIdentifier();
}
-ScriptSourceCode::ScriptSourceCode(ScriptResource* resource)
+ScriptSourceCode::ScriptSourceCode(const ScriptResourceData* resource)
: source_(resource->SourceText()),
resource_(resource),
start_position_(TextPosition::MinimumPosition()) {
@@ -26,7 +28,7 @@ ScriptSourceCode::ScriptSourceCode(ScriptResource* resource)
}
ScriptSourceCode::ScriptSourceCode(ScriptStreamer* streamer,
- ScriptResource* resource)
+ const ScriptResourceData* resource)
: source_(resource->SourceText()),
resource_(resource),
streamer_(streamer),

Powered by Google App Engine
This is Rietveld 408576698