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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 LocalFrame* ToFrame(ExecutionContext* context) { 85 LocalFrame* ToFrame(ExecutionContext* context) {
86 if (!context) 86 if (!context)
87 return nullptr; 87 return nullptr;
88 if (context->IsDocument()) 88 if (context->IsDocument())
89 return ToDocument(context)->GetFrame(); 89 return ToDocument(context)->GetFrame();
90 if (context->IsMainThreadWorkletGlobalScope()) 90 if (context->IsMainThreadWorkletGlobalScope())
91 return ToMainThreadWorkletGlobalScope(context)->GetFrame(); 91 return ToMainThreadWorkletGlobalScope(context)->GetFrame();
92 return nullptr; 92 return nullptr;
93 } 93 }
94 } 94 } // namespace
95 95
96 MainThreadDebugger* MainThreadDebugger::instance_ = nullptr; 96 MainThreadDebugger* MainThreadDebugger::instance_ = nullptr;
97 97
98 MainThreadDebugger::MainThreadDebugger(v8::Isolate* isolate) 98 MainThreadDebugger::MainThreadDebugger(v8::Isolate* isolate)
99 : ThreadDebugger(isolate), 99 : ThreadDebugger(isolate),
100 task_runner_(WTF::MakeUnique<InspectorTaskRunner>()), 100 task_runner_(WTF::MakeUnique<InspectorTaskRunner>()),
101 paused_(false) { 101 paused_(false) {
102 MutexLocker locker(CreationMutex()); 102 MutexLocker locker(CreationMutex());
103 DCHECK(!instance_); 103 DCHECK(!instance_);
104 instance_ = this; 104 instance_ = this;
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 context, nodes, index++, 464 context, nodes, index++,
465 ToV8(node, info.Holder(), info.GetIsolate())) 465 ToV8(node, info.Holder(), info.GetIsolate()))
466 .FromMaybe(false)) 466 .FromMaybe(false))
467 return; 467 return;
468 } 468 }
469 info.GetReturnValue().Set(nodes); 469 info.GetReturnValue().Set(nodes);
470 } 470 }
471 } 471 }
472 472
473 } // namespace blink 473 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698