| 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/V8Binding.h" | 9 #include "bindings/core/v8/V8Binding.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 ScriptStreamer::StartStreaming( | 223 ScriptStreamer::StartStreaming( |
| 224 this, streamer_type, document->GetFrame()->GetSettings(), script_state, | 224 this, streamer_type, document->GetFrame()->GetSettings(), script_state, |
| 225 TaskRunnerHelper::Get(TaskType::kNetworking, document)); | 225 TaskRunnerHelper::Get(TaskType::kNetworking, document)); |
| 226 } | 226 } |
| 227 | 227 |
| 228 bool ClassicPendingScript::WasCanceled() const { | 228 bool ClassicPendingScript::WasCanceled() const { |
| 229 return GetResource()->WasCanceled(); | 229 return GetResource()->WasCanceled(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 KURL ClassicPendingScript::Url() const { | 232 KURL ClassicPendingScript::UrlForClassicScript() const { |
| 233 return GetResource()->Url(); | 233 return GetResource()->Url(); |
| 234 } | 234 } |
| 235 | 235 |
| 236 void ClassicPendingScript::RemoveFromMemoryCache() { | 236 void ClassicPendingScript::RemoveFromMemoryCache() { |
| 237 GetMemoryCache()->Remove(GetResource()); | 237 GetMemoryCache()->Remove(GetResource()); |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |