| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/csspaint/PaintWorkletGlobalScope.h" | 5 #include "modules/csspaint/PaintWorkletGlobalScope.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" | 7 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
| 8 #include "core/inspector/MainThreadDebugger.h" | 8 #include "core/inspector/MainThreadDebugger.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 PassRefPtrWillBeRawPtr<PaintWorkletGlobalScope> PaintWorkletGlobalScope::create(
LocalFrame* frame, const KURL& url, const String& userAgent, PassRefPtr<Security
Origin> securityOrigin, v8::Isolate* isolate) | 13 RawPtr<PaintWorkletGlobalScope> PaintWorkletGlobalScope::create(LocalFrame* fram
e, const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> security
Origin, v8::Isolate* isolate) |
| 14 { | 14 { |
| 15 RefPtrWillBeRawPtr<PaintWorkletGlobalScope> paintWorkletGlobalScope = adoptR
efWillBeNoop(new PaintWorkletGlobalScope(frame, url, userAgent, securityOrigin,
isolate)); | 15 RawPtr<PaintWorkletGlobalScope> paintWorkletGlobalScope = new PaintWorkletGl
obalScope(frame, url, userAgent, securityOrigin, isolate); |
| 16 paintWorkletGlobalScope->scriptController()->initializeContextIfNeeded(); | 16 paintWorkletGlobalScope->scriptController()->initializeContextIfNeeded(); |
| 17 MainThreadDebugger::instance()->contextCreated(paintWorkletGlobalScope->scri
ptController()->getScriptState(), paintWorkletGlobalScope->frame(), paintWorklet
GlobalScope->getSecurityOrigin()); | 17 MainThreadDebugger::instance()->contextCreated(paintWorkletGlobalScope->scri
ptController()->getScriptState(), paintWorkletGlobalScope->frame(), paintWorklet
GlobalScope->getSecurityOrigin()); |
| 18 return paintWorkletGlobalScope.release(); | 18 return paintWorkletGlobalScope.release(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 PaintWorkletGlobalScope::PaintWorkletGlobalScope(LocalFrame* frame, const KURL&
url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Iso
late* isolate) | 21 PaintWorkletGlobalScope::PaintWorkletGlobalScope(LocalFrame* frame, const KURL&
url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Iso
late* isolate) |
| 22 : WorkletGlobalScope(frame, url, userAgent, securityOrigin, isolate) | 22 : WorkletGlobalScope(frame, url, userAgent, securityOrigin, isolate) |
| 23 { | 23 { |
| 24 } | 24 } |
| 25 | 25 |
| 26 PaintWorkletGlobalScope::~PaintWorkletGlobalScope() | 26 PaintWorkletGlobalScope::~PaintWorkletGlobalScope() |
| 27 { | 27 { |
| 28 } | 28 } |
| 29 | 29 |
| 30 } // namespace blink | 30 } // namespace blink |
| OLD | NEW |