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

Unified Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp

Issue 1745253002: [Worklets] Add basic debugging to main thread worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix non-oilpan build. Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
index ed7b505050881a420759e99329d2f0239ce5e475..95d980cda337bdcb3b0f705761ce0d0fe5f19d1d 100644
--- a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/WorkerOrWorkletScriptController.h"
#include "core/frame/FrameConsole.h"
#include "core/inspector/InspectorInstrumentation.h"
+#include "core/inspector/MainThreadDebugger.h"
#include "modules/worklet/WorkletConsole.h"
namespace blink {
@@ -16,11 +17,12 @@ PassRefPtrWillBeRawPtr<WorkletGlobalScope> WorkletGlobalScope::create(LocalFrame
{
RefPtrWillBeRawPtr<WorkletGlobalScope> workletGlobalScope = adoptRefWillBeNoop(new WorkletGlobalScope(frame, url, userAgent, securityOrigin, isolate));
workletGlobalScope->scriptController()->initializeContextIfNeeded();
+ MainThreadDebugger::contextCreated(workletGlobalScope->scriptController()->getScriptState(), workletGlobalScope->frame(), workletGlobalScope->getSecurityOrigin());
return workletGlobalScope.release();
}
WorkletGlobalScope::WorkletGlobalScope(LocalFrame* frame, const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Isolate* isolate)
- : LocalFrameLifecycleObserver(frame)
+ : MainThreadWorkletGlobalScope(frame)
, m_url(url)
, m_userAgent(userAgent)
, m_scriptController(WorkerOrWorkletScriptController::create(this, isolate))
@@ -105,7 +107,7 @@ DEFINE_TRACE(WorkletGlobalScope)
visitor->trace(m_console);
ExecutionContext::trace(visitor);
SecurityContext::trace(visitor);
- LocalFrameLifecycleObserver::trace(visitor);
+ MainThreadWorkletGlobalScope::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698