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

Unified Diff: src/inspector/v8-debugger-agent-impl.cc

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/inspector/v8-debugger-agent-impl.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger-agent-impl.cc
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc
index 2d78ce6ae036bc3a8f6b4d45cad6f3756405a7b1..455a0d6643d5f6f97096d2bbbd0728d0de2488c7 100644
--- a/src/inspector/v8-debugger-agent-impl.cc
+++ b/src/inspector/v8-debugger-agent-impl.cc
@@ -152,6 +152,7 @@ void V8DebuggerAgentImpl::enableImpl() {
m_debugger->getCompiledScripts(m_session->contextGroupId(), compiledScripts);
for (size_t i = 0; i < compiledScripts.size(); i++)
didParseSource(std::move(compiledScripts[i]), true);
+ m_debugger->reportRequestedModules();
// FIXME(WK44513): breakpoints activated flag should be synchronized between
// all front-ends
@@ -1059,6 +1060,14 @@ void V8DebuggerAgentImpl::didParseSource(
}
}
+void V8DebuggerAgentImpl::moduleRequested(const String16& refererId,
+ const String16& requestedId,
+ const String16& specifier) {
+ if (m_scripts.find(refererId) == m_scripts.end()) return;
+ if (m_scripts.find(requestedId) == m_scripts.end()) return;
+ m_frontend.moduleRequested(refererId, requestedId, specifier);
+}
+
bool V8DebuggerAgentImpl::didPause(v8::Local<v8::Context> context,
v8::Local<v8::Value> exception,
const std::vector<String16>& hitBreakpoints,
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698