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

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

Issue 1997293002: Introduce SourceLocation to be used for console messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 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/inspector_protocol/Collections.h" 8 #include "platform/inspector_protocol/Collections.h"
9 #include "platform/v8_inspector/public/V8StackTrace.h" 9 #include "platform/v8_inspector/public/V8StackTrace.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 29 matching lines...) Expand all
40 String16 m_functionName; 40 String16 m_functionName;
41 String16 m_scriptId; 41 String16 m_scriptId;
42 String16 m_scriptName; 42 String16 m_scriptName;
43 int m_lineNumber; 43 int m_lineNumber;
44 int m_columnNumber; 44 int m_columnNumber;
45 }; 45 };
46 46
47 static PassOwnPtr<V8StackTraceImpl> create(V8DebuggerAgentImpl*, v8::Local<v 8::StackTrace>, size_t maxStackSize, const String16& description = String16()); 47 static PassOwnPtr<V8StackTraceImpl> create(V8DebuggerAgentImpl*, v8::Local<v 8::StackTrace>, size_t maxStackSize, const String16& description = String16());
48 static PassOwnPtr<V8StackTraceImpl> capture(V8DebuggerAgentImpl*, size_t max StackSize, const String16& description = String16()); 48 static PassOwnPtr<V8StackTraceImpl> capture(V8DebuggerAgentImpl*, size_t max StackSize, const String16& description = String16());
49 49
50 PassOwnPtr<V8StackTraceImpl> clone(); 50 PassOwnPtr<V8StackTrace> clone() override;
51 PassOwnPtr<V8StackTraceImpl> cloneImpl();
51 PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObjectForTail(V8Debu ggerAgentImpl*) const; 52 PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObjectForTail(V8Debu ggerAgentImpl*) const;
52 ~V8StackTraceImpl() override; 53 ~V8StackTraceImpl() override;
53 54
54 // V8StackTrace implementation. 55 // V8StackTrace implementation.
55 bool isEmpty() const override { return !m_frames.size(); }; 56 bool isEmpty() const override { return !m_frames.size(); };
56 String16 topSourceURL() const override; 57 String16 topSourceURL() const override;
57 int topLineNumber() const override; 58 int topLineNumber() const override;
58 int topColumnNumber() const override; 59 int topColumnNumber() const override;
59 String16 topScriptId() const override; 60 String16 topScriptId() const override;
60 String16 topFunctionName() const override; 61 String16 topFunctionName() const override;
61 PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObject() const overr ide; 62 PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObject() const overr ide;
62 String16 toString() const override; 63 String16 toString() const override;
63 64
64 private: 65 private:
65 V8StackTraceImpl(const String16& description, protocol::Vector<Frame>& frame s, PassOwnPtr<V8StackTraceImpl> parent); 66 V8StackTraceImpl(const String16& description, protocol::Vector<Frame>& frame s, PassOwnPtr<V8StackTraceImpl> parent);
66 67
67 String16 m_description; 68 String16 m_description;
68 protocol::Vector<Frame> m_frames; 69 protocol::Vector<Frame> m_frames;
69 OwnPtr<V8StackTraceImpl> m_parent; 70 OwnPtr<V8StackTraceImpl> m_parent;
70 }; 71 };
71 72
72 } // namespace blink 73 } // namespace blink
73 74
74 #endif // V8StackTraceImpl_h 75 #endif // V8StackTraceImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698