| OLD | NEW |
| 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/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 9 #include "platform/v8_inspector/protocol/Runtime.h" | 9 #include "platform/v8_inspector/protocol/Runtime.h" |
| 10 #include "platform/v8_inspector/public/V8StackTrace.h" | 10 #include "platform/v8_inspector/public/V8StackTrace.h" |
| 11 | 11 |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 namespace blink { | 14 namespace v8_inspector { |
| 15 | 15 |
| 16 class TracedValue; | 16 class TracedValue; |
| 17 class V8Debugger; | 17 class V8Debugger; |
| 18 | 18 |
| 19 namespace protocol = blink::protocol; |
| 20 |
| 19 // Note: async stack trace may have empty top stack with non-empty tail to indic
ate | 21 // Note: async stack trace may have empty top stack with non-empty tail to indic
ate |
| 20 // that current native-only state had some async story. | 22 // that current native-only state had some async story. |
| 21 // On the other hand, any non-top async stack is guaranteed to be non-empty. | 23 // On the other hand, any non-top async stack is guaranteed to be non-empty. |
| 22 class V8StackTraceImpl final : public V8StackTrace { | 24 class V8StackTraceImpl final : public V8StackTrace { |
| 23 PROTOCOL_DISALLOW_COPY(V8StackTraceImpl); | 25 PROTOCOL_DISALLOW_COPY(V8StackTraceImpl); |
| 24 public: | 26 public: |
| 25 static const size_t maxCallStackSizeToCapture = 200; | 27 static const size_t maxCallStackSizeToCapture = 200; |
| 26 | 28 |
| 27 class Frame { | 29 class Frame { |
| 28 public: | 30 public: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 74 |
| 73 private: | 75 private: |
| 74 V8StackTraceImpl(int contextGroupId, const String16& description, std::vecto
r<Frame>& frames, std::unique_ptr<V8StackTraceImpl> parent); | 76 V8StackTraceImpl(int contextGroupId, const String16& description, std::vecto
r<Frame>& frames, std::unique_ptr<V8StackTraceImpl> parent); |
| 75 | 77 |
| 76 int m_contextGroupId; | 78 int m_contextGroupId; |
| 77 String16 m_description; | 79 String16 m_description; |
| 78 std::vector<Frame> m_frames; | 80 std::vector<Frame> m_frames; |
| 79 std::unique_ptr<V8StackTraceImpl> m_parent; | 81 std::unique_ptr<V8StackTraceImpl> m_parent; |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 } // namespace blink | 84 } // namespace v8_inspector |
| 83 | 85 |
| 84 #endif // V8StackTraceImpl_h | 86 #endif // V8StackTraceImpl_h |
| OLD | NEW |