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

Unified Diff: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: reuse existing instrumentation for network 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
Index: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
diff --git a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
index b5147ea35d389792c4ab7de79277e0d0ca7dacf4..7764c226f441af87f080b50e70fd2217bd8d4fe3 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
@@ -33,6 +33,7 @@
#include "core/InstrumentingAgents.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorLogAgent.h"
+#include "core/inspector/InspectorNetworkAgent.h"
#include "core/inspector/WorkerThreadDebugger.h"
#include "core/inspector/protocol/Protocol.h"
#include "core/workers/WorkerBackingThread.h"
@@ -71,6 +72,7 @@ void WorkerInspectorController::connectFrontend() {
m_debugger->contextGroupId(m_thread), nullptr);
m_session->append(
new InspectorLogAgent(m_thread->consoleMessageStorage(), nullptr));
+ m_session->append(InspectorNetworkAgent::create(nullptr));
pfeldman 2017/01/20 20:41:46 You just created one for all dedicated workers. No
horo 2017/01/23 08:05:32 I introduces inspectorNetworkCapability flag. So I
m_thread->workerBackingThread().backingThread().addTaskObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698