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

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

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/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 cda37fcae02963ac1823e314f6435d26d07ec035..34d0bfcfbbabc7fd7f75510e3b25745b3365c49a 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,11 +20,11 @@ ScriptSourceCode::ScriptSourceCode(const String& source,
url_.RemoveFragmentIdentifier();
}
-ScriptSourceCode::ScriptSourceCode(ScriptResource* resource)
+ScriptSourceCode::ScriptSourceCode(const ScriptResourceData* resource)
: ScriptSourceCode(nullptr, 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