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

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

Issue 896603002: Oilpan: declare and define various inspector class dtors out-of-line. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/inspector/ScriptAsyncCallStack.h ('k') | Source/core/inspector/ScriptCallStack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/inspector/ScriptAsyncCallStack.h" 6 #include "core/inspector/ScriptAsyncCallStack.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptAsyncCallStack);
11
12 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> ScriptAsyncCallStack::create(const String& description, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack, PassRefP trWillBeRawPtr<ScriptAsyncCallStack> asyncStackTrace) 10 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> ScriptAsyncCallStack::create(const String& description, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack, PassRefP trWillBeRawPtr<ScriptAsyncCallStack> asyncStackTrace)
13 { 11 {
14 return adoptRefWillBeNoop(new ScriptAsyncCallStack(description, callStack, a syncStackTrace)); 12 return adoptRefWillBeNoop(new ScriptAsyncCallStack(description, callStack, a syncStackTrace));
15 } 13 }
16 14
17 ScriptAsyncCallStack::ScriptAsyncCallStack(const String& description, PassRefPtr WillBeRawPtr<ScriptCallStack> callStack, PassRefPtrWillBeRawPtr<ScriptAsyncCallS tack> asyncStackTrace) 15 ScriptAsyncCallStack::ScriptAsyncCallStack(const String& description, PassRefPtr WillBeRawPtr<ScriptCallStack> callStack, PassRefPtrWillBeRawPtr<ScriptAsyncCallS tack> asyncStackTrace)
18 : m_description(description) 16 : m_description(description)
19 , m_callStack(callStack) 17 , m_callStack(callStack)
20 , m_asyncStackTrace(asyncStackTrace) 18 , m_asyncStackTrace(asyncStackTrace)
21 { 19 {
22 ASSERT(m_callStack); 20 ASSERT(m_callStack);
23 } 21 }
24 22
23 ScriptAsyncCallStack::~ScriptAsyncCallStack()
24 {
25 }
26
25 PassRefPtr<TypeBuilder::Console::AsyncStackTrace> ScriptAsyncCallStack::buildIns pectorObject() const 27 PassRefPtr<TypeBuilder::Console::AsyncStackTrace> ScriptAsyncCallStack::buildIns pectorObject() const
26 { 28 {
27 RefPtr<TypeBuilder::Console::AsyncStackTrace> result = TypeBuilder::Console: :AsyncStackTrace::create() 29 RefPtr<TypeBuilder::Console::AsyncStackTrace> result = TypeBuilder::Console: :AsyncStackTrace::create()
28 .setCallFrames(m_callStack->buildInspectorArray()) 30 .setCallFrames(m_callStack->buildInspectorArray())
29 .release(); 31 .release();
30 result->setDescription(m_description); 32 result->setDescription(m_description);
31 if (m_asyncStackTrace) 33 if (m_asyncStackTrace)
32 result->setAsyncStackTrace(m_asyncStackTrace->buildInspectorObject()); 34 result->setAsyncStackTrace(m_asyncStackTrace->buildInspectorObject());
33 return result.release(); 35 return result.release();
34 } 36 }
35 37
36 void ScriptAsyncCallStack::trace(Visitor* visitor) 38 void ScriptAsyncCallStack::trace(Visitor* visitor)
37 { 39 {
38 visitor->trace(m_callStack); 40 visitor->trace(m_callStack);
39 visitor->trace(m_asyncStackTrace); 41 visitor->trace(m_asyncStackTrace);
40 } 42 }
41 43
42 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/ScriptAsyncCallStack.h ('k') | Source/core/inspector/ScriptCallStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698