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

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

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: added missing test 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/factory.cc » ('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 b25ad905508c067dea9353a031ebc28924432d6e..d76ad1da5e749006021fe1c963e5ec91e87395d0 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -147,6 +147,10 @@ class WasmScript : public Script {
void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts);
+// Calls DebugDelegate::ModuleRequested for any modules that were requested
+// during other module evaluation.
+void ReportRequestedModules(Isolate* isolate);
+
MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
Local<String> source);
@@ -169,6 +173,9 @@ class DebugDelegate {
const debug::Location& end) {
return false;
}
+ virtual void ModuleRequested(v8::Local<debug::Script> referer,
+ v8::Local<debug::Script> requested,
+ v8::Local<v8::String> specifier) {}
};
void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener);
« no previous file with comments | « src/debug/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698