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

Side by Side Diff: third_party/WebKit/Source/core/inspector/ScriptCallStack.h

Issue 1601283003: DevTools: deoilpanize inspector/v8 and related classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 4 years, 11 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) 2008, 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2010 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ScriptCallStack_h 31 #ifndef ScriptCallStack_h
32 #define ScriptCallStack_h 32 #define ScriptCallStack_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/InspectorTypeBuilder.h" 35 #include "core/InspectorTypeBuilder.h"
36 #include "core/inspector/ScriptCallFrame.h" 36 #include "core/inspector/ScriptCallFrame.h"
37 #include "platform/heap/Handle.h"
38 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
39 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
40 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
41 40
42 namespace blink { 41 namespace blink {
43 42
44 class ScriptAsyncCallStack; 43 class ScriptAsyncCallStack;
45 class TracedValue; 44 class TracedValue;
46 45
47 class CORE_EXPORT ScriptCallStack final : public RefCountedWillBeGarbageCollecte dFinalized<ScriptCallStack> { 46 class CORE_EXPORT ScriptCallStack final : public RefCounted<ScriptCallStack> {
48 public: 47 public:
49 static const size_t maxCallStackSizeToCapture = 200; 48 static const size_t maxCallStackSizeToCapture = 200;
50 49
51 static PassRefPtrWillBeRawPtr<ScriptCallStack> create(Vector<ScriptCallFrame >&); 50 static PassRefPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&);
52 51
53 ~ScriptCallStack(); 52 ~ScriptCallStack();
54 53
55 const ScriptCallFrame &at(size_t) const; 54 const ScriptCallFrame &at(size_t) const;
56 size_t size() const; 55 size_t size() const;
57 56
58 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> asyncCallStack() const; 57 PassRefPtr<ScriptAsyncCallStack> asyncCallStack() const;
59 void setAsyncCallStack(PassRefPtrWillBeRawPtr<ScriptAsyncCallStack>); 58 void setAsyncCallStack(PassRefPtr<ScriptAsyncCallStack>);
60 59
61 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspec torArray() const; 60 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspec torArray() const;
62 void toTracedValue(TracedValue*, const char* name) const; 61 void toTracedValue(TracedValue*, const char* name) const;
63 62
64 DECLARE_TRACE();
65
66 private: 63 private:
67 explicit ScriptCallStack(Vector<ScriptCallFrame>&); 64 explicit ScriptCallStack(Vector<ScriptCallFrame>&);
68 65
69 Vector<ScriptCallFrame> m_frames; 66 Vector<ScriptCallFrame> m_frames;
70 RefPtrWillBeMember<ScriptAsyncCallStack> m_asyncCallStack; 67 RefPtr<ScriptAsyncCallStack> m_asyncCallStack;
71 }; 68 };
72 69
73 } // namespace blink 70 } // namespace blink
74 71
75 #endif // ScriptCallStack_h 72 #endif // ScriptCallStack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698