| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "bindings/core/v8/ScriptSourceCode.h" | 28 #include "bindings/core/v8/ScriptSourceCode.h" |
| 29 #include "bindings/core/v8/ScriptState.h" | 29 #include "bindings/core/v8/ScriptState.h" |
| 30 #include "bindings/core/v8/V8Binding.h" | 30 #include "bindings/core/v8/V8Binding.h" |
| 31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
| 32 #include "core/dom/ScriptElementBase.h" | 32 #include "core/dom/ScriptElementBase.h" |
| 33 #include "core/dom/TaskRunnerHelper.h" | 33 #include "core/dom/TaskRunnerHelper.h" |
| 34 #include "core/frame/LocalFrame.h" | 34 #include "core/frame/LocalFrame.h" |
| 35 #include "core/frame/SubresourceIntegrity.h" | 35 #include "core/frame/SubresourceIntegrity.h" |
| 36 #include "platform/SharedBuffer.h" | 36 #include "platform/SharedBuffer.h" |
| 37 #include "wtf/CurrentTime.h" | 37 #include "platform/wtf/CurrentTime.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 PendingScript* PendingScript::Create(ScriptElementBase* element, | 41 PendingScript* PendingScript::Create(ScriptElementBase* element, |
| 42 ScriptResource* resource) { | 42 ScriptResource* resource) { |
| 43 return new PendingScript(element, resource, TextPosition()); | 43 return new PendingScript(element, resource, TextPosition()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PendingScript* PendingScript::Create(ScriptElementBase* element, | 46 PendingScript* PendingScript::Create(ScriptElementBase* element, |
| 47 const TextPosition& starting_position) { | 47 const TextPosition& starting_position) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 ScriptState* script_state = ToScriptStateForMainWorld(document->GetFrame()); | 288 ScriptState* script_state = ToScriptStateForMainWorld(document->GetFrame()); |
| 289 if (!script_state) | 289 if (!script_state) |
| 290 return; | 290 return; |
| 291 | 291 |
| 292 ScriptStreamer::StartStreaming( | 292 ScriptStreamer::StartStreaming( |
| 293 this, streamer_type, document->GetFrame()->GetSettings(), script_state, | 293 this, streamer_type, document->GetFrame()->GetSettings(), script_state, |
| 294 TaskRunnerHelper::Get(TaskType::kNetworking, document)); | 294 TaskRunnerHelper::Get(TaskType::kNetworking, document)); |
| 295 } | 295 } |
| 296 | 296 |
| 297 } // namespace blink | 297 } // namespace blink |
| OLD | NEW |