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

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

Issue 1746393003: [DevTools] Postpone more agents instantiation until attached. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 79d4ebbdef164d79a4fa63a6602a494fd97523d5..63054eaafa58f91865d3af7db831b2a067f5a561 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
@@ -47,7 +47,7 @@ using ErrorString = String;
class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<InspectorWorkerAgent, protocol::Frontend::Worker>, public protocol::Dispatcher::WorkerCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorWorkerAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(PageConsoleAgent*);
+ static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create();
~InspectorWorkerAgent() override;
DECLARE_VIRTUAL_TRACE();
@@ -68,6 +68,7 @@ public:
void setAutoconnectToWorkers(ErrorString*, bool value) override;
void setTracingSessionId(const String&);
+ void setPageConsoleAgent(PageConsoleAgent*);
class WorkerAgentClient final : public WorkerInspectorProxy::PageInspector {
USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorWorkerAgent::WorkerAgentClient);
@@ -96,7 +97,7 @@ public:
};
private:
- InspectorWorkerAgent(PageConsoleAgent*);
+ InspectorWorkerAgent();
void createWorkerAgentClientsForExistingWorkers();
void createWorkerAgentClient(WorkerInspectorProxy*, const String& url, const String& id);
void destroyWorkerAgentClients();

Powered by Google App Engine
This is Rietveld 408576698