OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/ClassicPendingScript.h" | 5 #include "core/dom/ClassicPendingScript.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptSourceCode.h" | 7 #include "bindings/core/v8/ScriptSourceCode.h" |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/ScriptStreamer.h" | 9 #include "bindings/core/v8/ScriptStreamer.h" |
10 #include "bindings/core/v8/V8BindingForCore.h" | 10 #include "bindings/core/v8/V8BindingForCore.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 ScriptStreamer::StartStreaming( | 228 ScriptStreamer::StartStreaming( |
229 this, streamer_type, document->GetFrame()->GetSettings(), script_state, | 229 this, streamer_type, document->GetFrame()->GetSettings(), script_state, |
230 TaskRunnerHelper::Get(TaskType::kNetworking, document)); | 230 TaskRunnerHelper::Get(TaskType::kNetworking, document)); |
231 } | 231 } |
232 | 232 |
233 bool ClassicPendingScript::WasCanceled() const { | 233 bool ClassicPendingScript::WasCanceled() const { |
234 return GetResource()->WasCanceled(); | 234 return GetResource()->WasCanceled(); |
235 } | 235 } |
236 | 236 |
237 KURL ClassicPendingScript::Url() const { | 237 KURL ClassicPendingScript::UrlForClassicScript() const { |
238 return GetResource()->Url(); | 238 return GetResource()->Url(); |
239 } | 239 } |
240 | 240 |
241 void ClassicPendingScript::RemoveFromMemoryCache() { | 241 void ClassicPendingScript::RemoveFromMemoryCache() { |
242 GetMemoryCache()->Remove(GetResource()); | 242 GetMemoryCache()->Remove(GetResource()); |
243 } | 243 } |
244 | 244 |
245 } // namespace blink | 245 } // namespace blink |
OLD | NEW |