| Index: third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
|
| index b638ce7da5559d87c966dd7665ee0b39b8bb1d2f..e232f388c46d762a200b2e51f424a8537a890093 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
|
| @@ -33,7 +33,7 @@
|
|
|
| #include "core/CoreExport.h"
|
| #include "core/inspector/InspectorBaseAgent.h"
|
| -#include "core/inspector/protocol/Worker.h"
|
| +#include "core/inspector/protocol/Target.h"
|
| #include "core/workers/WorkerInspectorProxy.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/HashMap.h"
|
| @@ -44,7 +44,7 @@ class KURL;
|
| class WorkerInspectorProxy;
|
|
|
| class CORE_EXPORT InspectorWorkerAgent final
|
| - : public InspectorBaseAgent<protocol::Worker::Metainfo>,
|
| + : public InspectorBaseAgent<protocol::Target::Metainfo>,
|
| public WorkerInspectorProxy::PageInspector {
|
| WTF_MAKE_NONCOPYABLE(InspectorWorkerAgent);
|
|
|
| @@ -63,17 +63,19 @@ class CORE_EXPORT InspectorWorkerAgent final
|
| void workerTerminated(WorkerInspectorProxy*);
|
|
|
| // Called from Dispatcher
|
| - void enable(ErrorString*) override;
|
| - void sendMessageToWorker(ErrorString*,
|
| - const String& workerId,
|
| + void setAutoAttach(ErrorString*,
|
| + bool autoAttach,
|
| + bool waitForDebuggerOnStart) override;
|
| + void sendMessageToTarget(ErrorString*,
|
| + const String& targetId,
|
| const String& message) override;
|
| - void setWaitForDebuggerOnStart(ErrorString*, bool value) override;
|
|
|
| void setTracingSessionId(const String&);
|
|
|
| private:
|
| - bool enabled();
|
| + bool autoAttachEnabled();
|
| void connectToAllProxies();
|
| + void disconnectFromAllProxies();
|
| void connectToProxy(WorkerInspectorProxy*, bool waitingForDebugger);
|
|
|
| // WorkerInspectorProxy::PageInspector implementation.
|
|
|