| 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 ef3233696be108fa6f2b70b426cf0bb2e0ba43ee..a52fbc594bfd1914b8b0f34d6030c9d33213a2c8 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;
|
| }
|
|
|