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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h

Issue 2442083002: [DevTools] Merge Worker domain to Target, migrate clients. (Closed)
Patch Set: rebased all tests Created 4 years, 2 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/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.
« no previous file with comments | « third_party/WebKit/Source/core/inspector/BUILD.gn ('k') | third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698