| 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" | |
| 9 #include "bindings/core/v8/ScriptStreamer.h" | 8 #include "bindings/core/v8/ScriptStreamer.h" |
| 10 #include "bindings/core/v8/V8BindingForCore.h" | 9 #include "bindings/core/v8/V8BindingForCore.h" |
| 11 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 12 #include "core/dom/TaskRunnerHelper.h" | 11 #include "core/dom/TaskRunnerHelper.h" |
| 13 #include "core/frame/LocalFrame.h" | 12 #include "core/frame/LocalFrame.h" |
| 14 #include "core/frame/SubresourceIntegrity.h" | 13 #include "core/frame/SubresourceIntegrity.h" |
| 14 #include "platform/bindings/ScriptState.h" |
| 15 #include "platform/loader/fetch/MemoryCache.h" | 15 #include "platform/loader/fetch/MemoryCache.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 ClassicPendingScript* ClassicPendingScript::Create(ScriptElementBase* element, | 19 ClassicPendingScript* ClassicPendingScript::Create(ScriptElementBase* element, |
| 20 ScriptResource* resource) { | 20 ScriptResource* resource) { |
| 21 return new ClassicPendingScript(element, resource, TextPosition()); | 21 return new ClassicPendingScript(element, resource, TextPosition()); |
| 22 } | 22 } |
| 23 | 23 |
| 24 ClassicPendingScript* ClassicPendingScript::Create( | 24 ClassicPendingScript* ClassicPendingScript::Create( |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 KURL ClassicPendingScript::UrlForClassicScript() const { | 250 KURL ClassicPendingScript::UrlForClassicScript() const { |
| 251 return GetResource()->Url(); | 251 return GetResource()->Url(); |
| 252 } | 252 } |
| 253 | 253 |
| 254 void ClassicPendingScript::RemoveFromMemoryCache() { | 254 void ClassicPendingScript::RemoveFromMemoryCache() { |
| 255 GetMemoryCache()->Remove(GetResource()); | 255 GetMemoryCache()->Remove(GetResource()); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace blink | 258 } // namespace blink |
| OLD | NEW |