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

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

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 years, 10 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/inspector/ScriptAsyncCallStack.h"
6
7 namespace blink {
8
9 PassRefPtr<ScriptAsyncCallStack> ScriptAsyncCallStack::create(const String& desc ription, PassRefPtr<ScriptCallStack> callStack, PassRefPtr<ScriptAsyncCallStack> asyncStackTrace)
10 {
11 return adoptRef(new ScriptAsyncCallStack(description, callStack, asyncStackT race));
12 }
13
14 ScriptAsyncCallStack::ScriptAsyncCallStack(const String& description, PassRefPtr <ScriptCallStack> callStack, PassRefPtr<ScriptAsyncCallStack> asyncStackTrace)
15 : m_description(description)
16 , m_callStack(callStack)
17 , m_asyncStackTrace(asyncStackTrace)
18 {
19 ASSERT(m_callStack);
20 }
21
22 ScriptAsyncCallStack::~ScriptAsyncCallStack()
23 {
24 }
25
26 PassRefPtr<TypeBuilder::Console::AsyncStackTrace> ScriptAsyncCallStack::buildIns pectorObject() const
27 {
28 RefPtr<TypeBuilder::Console::AsyncStackTrace> result = TypeBuilder::Console: :AsyncStackTrace::create()
29 .setCallFrames(m_callStack->buildInspectorArray())
30 .release();
31 result->setDescription(m_description);
32 if (m_asyncStackTrace)
33 result->setAsyncStackTrace(m_asyncStackTrace->buildInspectorObject());
34 return result.release();
35 }
36
37 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698