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

Unified Diff: src/inspector/public/V8StackTrace.h

Issue 2292573002: [inspector] Initial import of v8_inspector. (Closed)
Patch Set: format the code, disable cpplint Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/public/V8InspectorSession.h ('k') | tools/presubmit.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/public/V8StackTrace.h
diff --git a/src/inspector/public/V8StackTrace.h b/src/inspector/public/V8StackTrace.h
new file mode 100644
index 0000000000000000000000000000000000000000..e12b90763f1087d41eeaeca30fdf970a967afa44
--- /dev/null
+++ b/src/inspector/public/V8StackTrace.h
@@ -0,0 +1,34 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_INSPECTOR_PUBLIC_V8STACKTRACE_H_
+#define V8_INSPECTOR_PUBLIC_V8STACKTRACE_H_
+
+#include "src/inspector/public/StringBuffer.h"
+#include "src/inspector/public/StringView.h"
+#include "src/inspector/public/protocol/Runtime.h"
+
+namespace v8_inspector {
+
+class V8StackTrace {
+ public:
+ virtual bool isEmpty() const = 0;
+ virtual StringView topSourceURL() const = 0;
+ virtual int topLineNumber() const = 0;
+ virtual int topColumnNumber() const = 0;
+ virtual StringView topScriptId() const = 0;
+ virtual StringView topFunctionName() const = 0;
+
+ virtual ~V8StackTrace() {}
+ virtual std::unique_ptr<protocol::Runtime::API::StackTrace>
+ buildInspectorObject() const = 0;
+ virtual std::unique_ptr<StringBuffer> toString() const = 0;
+
+ // Safe to pass between threads, drops async chain.
+ virtual std::unique_ptr<V8StackTrace> clone() = 0;
+};
+
+} // namespace v8_inspector
+
+#endif // V8_INSPECTOR_PUBLIC_V8STACKTRACE_H_
« no previous file with comments | « src/inspector/public/V8InspectorSession.h ('k') | tools/presubmit.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698