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

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

Issue 2469233002: [DONT COMMIT] DevTools: Make WorkerThreadDebugger available for Worklets [1] (Closed)
Patch Set: Created 4 years, 1 month 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 if (m_clientMessageLoop) 248 if (m_clientMessageLoop)
249 m_clientMessageLoop->run(pausedFrame); 249 m_clientMessageLoop->run(pausedFrame);
250 } 250 }
251 251
252 void MainThreadDebugger::quitMessageLoopOnPause() { 252 void MainThreadDebugger::quitMessageLoopOnPause() {
253 m_paused = false; 253 m_paused = false;
254 if (m_clientMessageLoop) 254 if (m_clientMessageLoop)
255 m_clientMessageLoop->quitNow(); 255 m_clientMessageLoop->quitNow();
256 } 256 }
257 257
258 void MainThreadDebugger::quitMessageLoopOnPause(int contextGroupId) {
259 quitMessageLoopOnPause();
260 }
261
258 void MainThreadDebugger::muteMetrics(int contextGroupId) { 262 void MainThreadDebugger::muteMetrics(int contextGroupId) {
259 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); 263 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
260 if (frame && frame->host()) { 264 if (frame && frame->host()) {
261 frame->host()->useCounter().muteForInspector(); 265 frame->host()->useCounter().muteForInspector();
262 frame->host()->deprecation().muteForInspector(); 266 frame->host()->deprecation().muteForInspector();
263 } 267 }
264 } 268 }
265 269
266 void MainThreadDebugger::unmuteMetrics(int contextGroupId) { 270 void MainThreadDebugger::unmuteMetrics(int contextGroupId) {
267 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); 271 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 context, nodes, index++, 458 context, nodes, index++,
455 toV8(node, info.Holder(), info.GetIsolate())) 459 toV8(node, info.Holder(), info.GetIsolate()))
456 .FromMaybe(false)) 460 .FromMaybe(false))
457 return; 461 return;
458 } 462 }
459 info.GetReturnValue().Set(nodes); 463 info.GetReturnValue().Set(nodes);
460 } 464 }
461 } 465 }
462 466
463 } // namespace blink 467 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698