OLD | NEW |
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 if (context->isMainThreadWorkletGlobalScope()) | 89 if (context->isMainThreadWorkletGlobalScope()) |
90 return toMainThreadWorkletGlobalScope(context)->frame(); | 90 return toMainThreadWorkletGlobalScope(context)->frame(); |
91 return nullptr; | 91 return nullptr; |
92 } | 92 } |
93 } | 93 } |
94 | 94 |
95 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr; | 95 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr; |
96 | 96 |
97 MainThreadDebugger::MainThreadDebugger(v8::Isolate* isolate) | 97 MainThreadDebugger::MainThreadDebugger(v8::Isolate* isolate) |
98 : ThreadDebugger(isolate), | 98 : ThreadDebugger(isolate), |
99 m_taskRunner(makeUnique<InspectorTaskRunner>()), | 99 m_taskRunner(WTF::makeUnique<InspectorTaskRunner>()), |
100 m_paused(false) { | 100 m_paused(false) { |
101 MutexLocker locker(creationMutex()); | 101 MutexLocker locker(creationMutex()); |
102 ASSERT(!s_instance); | 102 ASSERT(!s_instance); |
103 s_instance = this; | 103 s_instance = this; |
104 } | 104 } |
105 | 105 |
106 MainThreadDebugger::~MainThreadDebugger() { | 106 MainThreadDebugger::~MainThreadDebugger() { |
107 MutexLocker locker(creationMutex()); | 107 MutexLocker locker(creationMutex()); |
108 ASSERT(s_instance == this); | 108 ASSERT(s_instance == this); |
109 s_instance = nullptr; | 109 s_instance = nullptr; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 context, nodes, index++, | 454 context, nodes, index++, |
455 toV8(node, info.Holder(), info.GetIsolate())) | 455 toV8(node, info.Holder(), info.GetIsolate())) |
456 .FromMaybe(false)) | 456 .FromMaybe(false)) |
457 return; | 457 return; |
458 } | 458 } |
459 info.GetReturnValue().Set(nodes); | 459 info.GetReturnValue().Set(nodes); |
460 } | 460 } |
461 } | 461 } |
462 | 462 |
463 } // namespace blink | 463 } // namespace blink |
OLD | NEW |