#include "wtf/Forward.h"
#include "wtf/HashMap.h"
-namespace WebCore {
+namespace blink {
class InspectorFrontend;
class InstrumentingAgents;
class JSONObject;
class InspectorWorkerAgent FINAL : public InspectorBaseAgent<InspectorWorkerAgent>, public InspectorBackendDispatcher::WorkerCommandHandler {
public:
- static PassOwnPtr<InspectorWorkerAgent> create();
+ static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create();
virtual ~InspectorWorkerAgent();
virtual void init() OVERRIDE;
virtual void sendMessageToWorker(ErrorString*, int workerId, const RefPtr<JSONObject>& message) OVERRIDE;
virtual void setAutoconnectToWorkers(ErrorString*, bool value) OVERRIDE;
+ void setTracingSessionId(const String&);
+
private:
InspectorWorkerAgent();
void createWorkerFrontendChannelsForExistingWorkers();
WorkerChannels m_idToChannel;
typedef HashMap<WorkerGlobalScopeProxy*, String> DedicatedWorkers;
DedicatedWorkers m_dedicatedWorkers;
+ String m_tracingSessionId;
};
-} // namespace WebCore
+} // namespace blink
#endif // !defined(InspectorWorkerAgent_h)