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

Unified Diff: Source/core/inspector/InspectorTracingAgent.h

Issue 460363002: Record DevTools metadata events on worker threads when starting recoring tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: Source/core/inspector/InspectorTracingAgent.h
diff --git a/Source/core/inspector/InspectorTracingAgent.h b/Source/core/inspector/InspectorTracingAgent.h
index 253d55d64f8cbc0dcf09aa6427e0ca5c1d593b6a..8110b76ed765ac67ae24880b2afa2cd460e73242 100644
--- a/Source/core/inspector/InspectorTracingAgent.h
+++ b/Source/core/inspector/InspectorTracingAgent.h
@@ -15,15 +15,16 @@
namespace blink {
class InspectorClient;
+class InspectorWorkerAgent;
class InspectorTracingAgent FINAL
: public InspectorBaseAgent<InspectorTracingAgent>
, public InspectorBackendDispatcher::TracingCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client)
+ static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent)
{
- return adoptPtrWillBeNoop(new InspectorTracingAgent(client));
+ return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent));
}
// Base agent methods.
@@ -41,16 +42,18 @@ public:
void setLayerTreeId(int);
private:
- explicit InspectorTracingAgent(InspectorClient*);
+ InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*);
void emitMetadataEvents();
void innerStart(const String& categoryFilter, bool fromConsole);
String sessionId();
+ void notifyTracingStopped();
int m_layerTreeId;
InspectorClient* m_client;
Vector<String> m_consoleTimelines;
InspectorFrontend::Tracing* m_frontend;
+ InspectorWorkerAgent* m_workerAgent;
};
}

Powered by Google App Engine
This is Rietveld 408576698