Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/worklet/WorkletGlobalScope.h" 5 #include "modules/worklet/WorkletGlobalScope.h"
6 6
7 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" 7 #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
8 #include "core/frame/FrameConsole.h" 8 #include "core/frame/FrameConsole.h"
9 #include "core/inspector/InspectorInstrumentation.h" 9 #include "core/inspector/InspectorInstrumentation.h"
10 #include "core/inspector/MainThreadDebugger.h" 10 #include "core/inspector/MainThreadDebugger.h"
11 #include "modules/worklet/WorkletConsole.h" 11 #include "modules/worklet/WorkletConsole.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 WorkletGlobalScope::WorkletGlobalScope(LocalFrame* frame, const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Isolate* isol ate) 15 WorkletGlobalScope::WorkletGlobalScope(LocalFrame* frame, const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Isolate* isol ate)
16 : MainThreadWorkletGlobalScope(frame) 16 : MainThreadWorkletGlobalScope(frame)
17 , m_url(url) 17 , m_url(url)
18 , m_userAgent(userAgent) 18 , m_userAgent(userAgent)
19 , m_scriptController(WorkerOrWorkletScriptController::create(this, isolate)) 19 , m_scriptController(WorkerOrWorkletScriptController::create(this, isolate))
20 , m_isolate(isolate)
20 { 21 {
21 setSecurityOrigin(securityOrigin); 22 setSecurityOrigin(securityOrigin);
22 } 23 }
23 24
24 WorkletGlobalScope::~WorkletGlobalScope() 25 WorkletGlobalScope::~WorkletGlobalScope()
25 { 26 {
26 } 27 }
27 28
28 WorkletConsole* WorkletGlobalScope::console() 29 WorkletConsole* WorkletGlobalScope::console()
29 { 30 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 DEFINE_TRACE(WorkletGlobalScope) 96 DEFINE_TRACE(WorkletGlobalScope)
96 { 97 {
97 visitor->trace(m_scriptController); 98 visitor->trace(m_scriptController);
98 visitor->trace(m_console); 99 visitor->trace(m_console);
99 ExecutionContext::trace(visitor); 100 ExecutionContext::trace(visitor);
100 SecurityContext::trace(visitor); 101 SecurityContext::trace(visitor);
101 MainThreadWorkletGlobalScope::trace(visitor); 102 MainThreadWorkletGlobalScope::trace(visitor);
102 } 103 }
103 104
104 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698