OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "bindings/core/v8/ScriptStreamer.h" | 6 #include "bindings/core/v8/ScriptStreamer.h" |
7 | 7 |
8 #include "bindings/core/v8/ScriptStreamerThread.h" | 8 #include "bindings/core/v8/ScriptStreamerThread.h" |
9 #include "bindings/core/v8/V8ScriptRunner.h" | 9 #include "bindings/core/v8/V8ScriptRunner.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
11 #include "core/dom/Element.h" | 11 #include "core/dom/Element.h" |
12 #include "core/dom/PendingScript.h" | 12 #include "core/dom/PendingScript.h" |
13 #include "core/fetch/ScriptResource.h" | 13 #include "core/dom/ScriptResource.h" |
14 #include "core/frame/Settings.h" | 14 #include "core/frame/Settings.h" |
15 #include "core/html/parser/TextResourceDecoder.h" | 15 #include "core/html/parser/TextResourceDecoder.h" |
16 #include "platform/SharedBuffer.h" | 16 #include "platform/SharedBuffer.h" |
17 #include "platform/Task.h" | 17 #include "platform/Task.h" |
18 #include "platform/ThreadSafeFunctional.h" | 18 #include "platform/ThreadSafeFunctional.h" |
19 #include "platform/TraceEvent.h" | 19 #include "platform/TraceEvent.h" |
20 #include "public/platform/Platform.h" | 20 #include "public/platform/Platform.h" |
21 #include "wtf/MainThread.h" | 21 #include "wtf/MainThread.h" |
22 #include "wtf/text/TextEncodingRegistry.h" | 22 #include "wtf/text/TextEncodingRegistry.h" |
23 | 23 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 | 642 |
643 // The Resource might go out of scope if the script is no longer | 643 // The Resource might go out of scope if the script is no longer |
644 // needed. This makes PendingScript notify the ScriptStreamer when it is | 644 // needed. This makes PendingScript notify the ScriptStreamer when it is |
645 // destroyed. | 645 // destroyed. |
646 script.setStreamer(ScriptStreamer::create(resource, scriptType, scriptState,
compileOption)); | 646 script.setStreamer(ScriptStreamer::create(resource, scriptType, scriptState,
compileOption)); |
647 | 647 |
648 return true; | 648 return true; |
649 } | 649 } |
650 | 650 |
651 } // namespace blink | 651 } // namespace blink |
OLD | NEW |