| 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 V8StackTrace_h | 5 #ifndef V8StackTrace_h |
| 6 #define V8StackTrace_h | 6 #define V8StackTrace_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/TypeBuilder.h" | 8 #include "platform/inspector_protocol/String16.h" |
| 9 #include "platform/v8_inspector/protocol/Runtime.h" |
| 9 #include "wtf/PtrUtil.h" | 10 #include "wtf/PtrUtil.h" |
| 10 | 11 |
| 11 #include <v8.h> | 12 #include <v8.h> |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 class TracedValue; | 16 class TracedValue; |
| 16 | 17 |
| 17 const v8::StackTrace::StackTraceOptions stackTraceOptions = static_cast<v8::Stac
kTrace::StackTraceOptions>( | 18 const v8::StackTrace::StackTraceOptions stackTraceOptions = static_cast<v8::Stac
kTrace::StackTraceOptions>( |
| 18 v8::StackTrace::kLineNumber | | 19 v8::StackTrace::kLineNumber | |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 virtual ~V8StackTrace() { } | 36 virtual ~V8StackTrace() { } |
| 36 virtual std::unique_ptr<protocol::Runtime::StackTrace> buildInspectorObject(
) const = 0; | 37 virtual std::unique_ptr<protocol::Runtime::StackTrace> buildInspectorObject(
) const = 0; |
| 37 virtual String16 toString() const = 0; | 38 virtual String16 toString() const = 0; |
| 38 virtual std::unique_ptr<V8StackTrace> clone() = 0; | 39 virtual std::unique_ptr<V8StackTrace> clone() = 0; |
| 39 virtual std::unique_ptr<V8StackTrace> isolatedCopy() = 0; // Safe to pass be
tween threads. | 40 virtual std::unique_ptr<V8StackTrace> isolatedCopy() = 0; // Safe to pass be
tween threads. |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace blink | 43 } // namespace blink |
| 43 | 44 |
| 44 #endif // V8StackTrace_h | 45 #endif // V8StackTrace_h |
| OLD | NEW |