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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/ScriptAsyncCallStack.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ScriptAsyncCallStack.cpp b/third_party/WebKit/Source/core/inspector/ScriptAsyncCallStack.cpp
deleted file mode 100644
index 8ec956e75f4a09fcd39b5c7c3fbae3480e3d8731..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/inspector/ScriptAsyncCallStack.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/inspector/ScriptAsyncCallStack.h"
-
-namespace blink {
-
-PassRefPtr<ScriptAsyncCallStack> ScriptAsyncCallStack::create(const String& description, PassRefPtr<ScriptCallStack> callStack, PassRefPtr<ScriptAsyncCallStack> asyncStackTrace)
-{
- return adoptRef(new ScriptAsyncCallStack(description, callStack, asyncStackTrace));
-}
-
-ScriptAsyncCallStack::ScriptAsyncCallStack(const String& description, PassRefPtr<ScriptCallStack> callStack, PassRefPtr<ScriptAsyncCallStack> asyncStackTrace)
- : m_description(description)
- , m_callStack(callStack)
- , m_asyncStackTrace(asyncStackTrace)
-{
- ASSERT(m_callStack);
-}
-
-ScriptAsyncCallStack::~ScriptAsyncCallStack()
-{
-}
-
-PassRefPtr<TypeBuilder::Console::AsyncStackTrace> ScriptAsyncCallStack::buildInspectorObject() const
-{
- RefPtr<TypeBuilder::Console::AsyncStackTrace> result = TypeBuilder::Console::AsyncStackTrace::create()
- .setCallFrames(m_callStack->buildInspectorArray())
- .release();
- result->setDescription(m_description);
- if (m_asyncStackTrace)
- result->setAsyncStackTrace(m_asyncStackTrace->buildInspectorObject());
- return result.release();
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698