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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 2029163002: Worklets - Change inheritance heirarchy of WorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return nullptr; 189 return nullptr;
190 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController()) 190 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController())
191 return controller->instrumentingAgents(); 191 return controller->instrumentingAgents();
192 return nullptr; 192 return nullptr;
193 } 193 }
194 194
195 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext* context) 195 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext* context)
196 { 196 {
197 if (context->isWorkerGlobalScope()) 197 if (context->isWorkerGlobalScope())
198 return instrumentingAgentsFor(toWorkerGlobalScope(context)); 198 return instrumentingAgentsFor(toWorkerGlobalScope(context));
199 if (context->isWorkletGlobalScope()) 199 if (context->isMainThreadWorkletGlobalScope())
200 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame()); 200 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame());
201 return nullptr; 201 return nullptr;
202 } 202 }
203 203
204 } // namespace InspectorInstrumentation 204 } // namespace InspectorInstrumentation
205 205
206 } // namespace blink 206 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698