| OLD | NEW | 
|---|
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 
| 6 #define V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 6 #define V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 
| 7 | 7 | 
| 8 #include <vector> | 8 #include <vector> | 
| 9 | 9 | 
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 74   bool isEmpty() const override { return !m_frames.size(); }; | 74   bool isEmpty() const override { return !m_frames.size(); }; | 
| 75   StringView topSourceURL() const override; | 75   StringView topSourceURL() const override; | 
| 76   int topLineNumber() const override; | 76   int topLineNumber() const override; | 
| 77   int topColumnNumber() const override; | 77   int topColumnNumber() const override; | 
| 78   StringView topScriptId() const override; | 78   StringView topScriptId() const override; | 
| 79   StringView topFunctionName() const override; | 79   StringView topFunctionName() const override; | 
| 80   std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorObject() | 80   std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorObject() | 
| 81       const override; | 81       const override; | 
| 82   std::unique_ptr<StringBuffer> toString() const override; | 82   std::unique_ptr<StringBuffer> toString() const override; | 
| 83 | 83 | 
|  | 84   void setCreation(std::unique_ptr<V8StackTraceImpl> creation); | 
|  | 85 | 
| 84  private: | 86  private: | 
| 85   V8StackTraceImpl(int contextGroupId, const String16& description, | 87   V8StackTraceImpl(int contextGroupId, const String16& description, | 
| 86                    std::vector<Frame>& frames, | 88                    std::vector<Frame>& frames, | 
| 87                    std::unique_ptr<V8StackTraceImpl> parent); | 89                    std::unique_ptr<V8StackTraceImpl> parent); | 
| 88 | 90 | 
| 89   int m_contextGroupId; | 91   int m_contextGroupId; | 
| 90   String16 m_description; | 92   String16 m_description; | 
| 91   std::vector<Frame> m_frames; | 93   std::vector<Frame> m_frames; | 
| 92   std::unique_ptr<V8StackTraceImpl> m_parent; | 94   std::unique_ptr<V8StackTraceImpl> m_parent; | 
|  | 95   std::unique_ptr<V8StackTraceImpl> m_creation; | 
| 93 | 96 | 
| 94   DISALLOW_COPY_AND_ASSIGN(V8StackTraceImpl); | 97   DISALLOW_COPY_AND_ASSIGN(V8StackTraceImpl); | 
| 95 }; | 98 }; | 
| 96 | 99 | 
| 97 }  // namespace v8_inspector | 100 }  // namespace v8_inspector | 
| 98 | 101 | 
| 99 #endif  // V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 102 #endif  // V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 
| OLD | NEW | 
|---|