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

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

Issue 1761663003: Revert of [DevTools] Postpone more agents instantiation until attached. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual 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 0264a4def3d101cfaad21670f7366ad6633e29c9..84b0c3dabd9b67434b3a7e8451e838ffe8c5c3d8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
@@ -48,7 +48,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(InspectedFrames*);
+ static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(InspectedFrames*, PageConsoleAgent*);
~InspectorWorkerAgent() override;
DECLARE_VIRTUAL_TRACE();
@@ -70,7 +70,6 @@ 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);
@@ -99,7 +98,7 @@ public:
};
private:
- explicit InspectorWorkerAgent(InspectedFrames*);
+ InspectorWorkerAgent(InspectedFrames*, PageConsoleAgent*);
void createWorkerAgentClientsForExistingWorkers();
void createWorkerAgentClient(WorkerInspectorProxy*, const String& url, const String& id);
void destroyWorkerAgentClients();

Powered by Google App Engine
This is Rietveld 408576698