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

Unified Diff: src/debug/debug-interface.h

Issue 2626283002: [inspector] introduced debug::SetCompileEventListener (Closed)
Patch Set: addressed comments Created 3 years, 11 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/debug/debug.cc ('k') | src/inspector/v8-debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-interface.h
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
index 6287e73765aa4a1a0d723d96ac52139c28e666e0..77deb70e4a3c365616912bcdf8a2f0bd8b40016f 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -173,17 +173,6 @@ class Script {
const debug::Location& end,
std::vector<debug::Location>* locations) const;
- /**
- * script parameter is a wrapper v8::internal::JSObject for
- * v8::internal::Script.
- * This function gets v8::internal::Script from v8::internal::JSObject and
- * wraps it with DebugInterface::Script.
- * Returns empty local if not called with a valid wrapper of
- * v8::internal::Script.
- */
- static MaybeLocal<Script> Wrap(Isolate* isolate,
- v8::Local<v8::Object> script);
-
private:
int GetSourcePosition(const debug::Location& location) const;
};
@@ -210,6 +199,12 @@ typedef std::function<void(debug::PromiseDebugActionType type, int id,
void SetAsyncTaskListener(Isolate* isolate, AsyncTaskListener listener,
void* data);
+typedef std::function<void(v8::Local<Script> script, bool has_compile_error,
+ void* data)>
+ CompileEventListener;
+void SetCompileEventListener(Isolate* isolate, CompileEventListener listener,
+ void* data);
+
} // namespace debug
} // namespace v8
« no previous file with comments | « src/debug/debug.cc ('k') | src/inspector/v8-debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698