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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.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/V8ScriptRunner.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
index f276185c702d2d7172d8f815bc7189469dbb7833..158e2b5679ccd605b320bd542fd4b1fb83bb9e19 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
@@ -37,7 +37,7 @@
#include "core/frame/LocalFrame.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "core/inspector/ThreadDebugger.h"
-#include "core/loader/resource/ScriptResource.h"
+#include "core/loader/resource/ScriptResourceData.h"
#include "core/probe/CoreProbes.h"
#include "platform/Histogram.h"
#include "platform/ScriptForbiddenScope.h"
@@ -393,7 +393,7 @@ static CompileFn SelectCompileFunction(
// Select a compile function for a streaming compile.
CompileFn SelectCompileFunction(V8CacheOptions cache_options,
- ScriptResource* resource,
+ const ScriptResourceData* resource,
ScriptStreamer* streamer) {
// We don't stream scripts which don't have a Resource.
DCHECK(resource);
@@ -451,7 +451,7 @@ v8::MaybeLocal<v8::Script> V8ScriptRunner::CompileScript(
const String& file_name,
const String& source_map_url,
const TextPosition& script_start_position,
- ScriptResource* resource,
+ const ScriptResourceData* resource,
ScriptStreamer* streamer,
CachedMetadataHandler* cache_handler,
AccessControlStatus access_control_status,

Powered by Google App Engine
This is Rietveld 408576698