Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
index 23650b19b314d7891387f86da589629adc102328..1c29597d80a69a77bd3b3bd2f91c4a5de98b546b 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
@@ -377,7 +377,7 @@ private: |
size_t ScriptStreamer::kSmallScriptThreshold = 30 * 1024; |
-void ScriptStreamer::startStreaming(PendingScript& script, PendingScript::Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner) |
+void ScriptStreamer::startStreaming(PendingScript* script, PendingScript::Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner) |
{ |
// We don't yet know whether the script will really be streamed. E.g., |
// suppressing streaming for short scripts is done later. Record only the |
@@ -636,11 +636,11 @@ void ScriptStreamer::notifyFinishedToClient() |
m_client->notifyFinished(m_resource); |
} |
-bool ScriptStreamer::startStreamingInternal(PendingScript& script, PendingScript::Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner) |
+bool ScriptStreamer::startStreamingInternal(PendingScript* script, PendingScript::Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner) |
{ |
ASSERT(isMainThread()); |
ASSERT(scriptState->contextIsValid()); |
- ScriptResource* resource = script.resource(); |
+ ScriptResource* resource = script->resource(); |
if (resource->isLoaded()) { |
Platform::current()->histogramEnumeration(notStreamingReasonHistogramName(scriptType), AlreadyLoaded, NotStreamingReasonEnd); |
return false; |
@@ -669,7 +669,7 @@ bool ScriptStreamer::startStreamingInternal(PendingScript& script, PendingScript |
// The Resource might go out of scope if the script is no longer |
// needed. This makes PendingScript notify the ScriptStreamer when it is |
// destroyed. |
- script.setStreamer(ScriptStreamer::create(resource, scriptType, scriptState, compileOption, loadingTaskRunner)); |
+ script->setStreamer(ScriptStreamer::create(resource, scriptType, scriptState, compileOption, loadingTaskRunner)); |
return true; |
} |