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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8StackTraceImpl.h

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8StackTraceImpl_h 5 #ifndef V8StackTraceImpl_h
6 #define V8StackTraceImpl_h 6 #define V8StackTraceImpl_h
7 7
8 #include "platform/v8_inspector/public/V8StackTrace.h" 8 #include "platform/v8_inspector/public/V8StackTrace.h"
9 #include "wtf/Forward.h" 9 #include "wtf/Forward.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 17 matching lines...) Expand all
28 ~Frame(); 28 ~Frame();
29 29
30 const String& functionName() const { return m_functionName; } 30 const String& functionName() const { return m_functionName; }
31 const String& scriptId() const { return m_scriptId; } 31 const String& scriptId() const { return m_scriptId; }
32 const String& sourceURL() const { return m_scriptName; } 32 const String& sourceURL() const { return m_scriptName; }
33 int lineNumber() const { return m_lineNumber; } 33 int lineNumber() const { return m_lineNumber; }
34 int columnNumber() const { return m_columnNumber; } 34 int columnNumber() const { return m_columnNumber; }
35 35
36 private: 36 private:
37 friend class V8StackTraceImpl; 37 friend class V8StackTraceImpl;
38 PassRefPtr<protocol::TypeBuilder::Runtime::CallFrame> buildInspectorObje ct() const; 38 PassOwnPtr<protocol::Runtime::CallFrame> buildInspectorObject() const;
39 void toTracedValue(TracedValue*) const; 39 void toTracedValue(TracedValue*) const;
40 40
41 String m_functionName; 41 String m_functionName;
42 String m_scriptId; 42 String m_scriptId;
43 String m_scriptName; 43 String m_scriptName;
44 int m_lineNumber; 44 int m_lineNumber;
45 int m_columnNumber; 45 int m_columnNumber;
46 }; 46 };
47 47
48 static PassOwnPtr<V8StackTraceImpl> create(const String& description, Vector <Frame>&, PassOwnPtr<V8StackTraceImpl>); 48 static PassOwnPtr<V8StackTraceImpl> create(const String& description, Vector <Frame>&, PassOwnPtr<V8StackTraceImpl>);
49 static PassOwnPtr<V8StackTraceImpl> create(V8DebuggerAgentImpl*, v8::Local<v 8::StackTrace>, size_t maxStackSize); 49 static PassOwnPtr<V8StackTraceImpl> create(V8DebuggerAgentImpl*, v8::Local<v 8::StackTrace>, size_t maxStackSize);
50 static PassOwnPtr<V8StackTraceImpl> capture(V8DebuggerAgentImpl*, size_t max StackSize); 50 static PassOwnPtr<V8StackTraceImpl> capture(V8DebuggerAgentImpl*, size_t max StackSize);
51 51
52 ~V8StackTraceImpl() override; 52 ~V8StackTraceImpl() override;
53 53
54 // V8StackTrace implementation. 54 // V8StackTrace implementation.
55 bool isEmpty() const override { return !m_frames.size(); }; 55 bool isEmpty() const override { return !m_frames.size(); };
56 String topSourceURL() const override; 56 String topSourceURL() const override;
57 int topLineNumber() const override; 57 int topLineNumber() const override;
58 int topColumnNumber() const override; 58 int topColumnNumber() const override;
59 String topScriptId() const override; 59 String topScriptId() const override;
60 String topFunctionName() const override; 60 String topFunctionName() const override;
61 PassRefPtr<protocol::TypeBuilder::Runtime::StackTrace> buildInspectorObject( ) const override; 61 PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObject() const overr ide;
62 String toString() const override; 62 String toString() const override;
63 63
64 private: 64 private:
65 V8StackTraceImpl(const String& description, Vector<Frame>& frames, PassOwnPt r<V8StackTraceImpl> parent); 65 V8StackTraceImpl(const String& description, Vector<Frame>& frames, PassOwnPt r<V8StackTraceImpl> parent);
66 66
67 String m_description; 67 String m_description;
68 Vector<Frame> m_frames; 68 Vector<Frame> m_frames;
69 OwnPtr<V8StackTraceImpl> m_parent; 69 OwnPtr<V8StackTraceImpl> m_parent;
70 }; 70 };
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // V8StackTraceImpl_h 74 #endif // V8StackTraceImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698