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

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

Issue 1696513002: DevTools: move protocol-related generators into inspector subfolder. (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 aed02c4968862af1b79e084971759912b78c1476..79d4ebbdef164d79a4fa63a6602a494fd97523d5 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
@@ -32,7 +32,6 @@
#define InspectorWorkerAgent_h
#include "core/CoreExport.h"
-#include "core/InspectorFrontend.h"
#include "core/inspector/InspectorBaseAgent.h"
#include "core/workers/WorkerInspectorProxy.h"
#include "wtf/Forward.h"
@@ -45,7 +44,7 @@ class WorkerInspectorProxy;
using ErrorString = String;
-class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<InspectorWorkerAgent, InspectorFrontend::Worker>, public InspectorBackendDispatcher::WorkerCommandHandler {
+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*);
@@ -61,7 +60,7 @@ public:
void didStartWorker(WorkerInspectorProxy*, const KURL&);
void workerTerminated(WorkerInspectorProxy*);
- // Called from InspectorBackendDispatcher
+ // Called from Dispatcher
void enable(ErrorString*) override;
void connectToWorker(ErrorString*, const String& workerId) override;
void disconnectFromWorker(ErrorString*, const String& workerId) override;
@@ -73,8 +72,8 @@ public:
class WorkerAgentClient final : public WorkerInspectorProxy::PageInspector {
USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorWorkerAgent::WorkerAgentClient);
public:
- static PassOwnPtrWillBeRawPtr<WorkerAgentClient> create(InspectorFrontend::Worker*, WorkerInspectorProxy*, const String& id, PageConsoleAgent*);
- WorkerAgentClient(InspectorFrontend::Worker*, WorkerInspectorProxy*, const String& id, PageConsoleAgent*);
+ static PassOwnPtrWillBeRawPtr<WorkerAgentClient> create(protocol::Frontend::Worker*, WorkerInspectorProxy*, const String& id, PageConsoleAgent*);
+ WorkerAgentClient(protocol::Frontend::Worker*, WorkerInspectorProxy*, const String& id, PageConsoleAgent*);
~WorkerAgentClient() override;
DECLARE_VIRTUAL_TRACE();
@@ -89,7 +88,7 @@ public:
void dispatchMessageFromWorker(const String& message) override;
void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) override;
- InspectorFrontend::Worker* m_frontend;
+ protocol::Frontend::Worker* m_frontend;
RawPtrWillBeMember<WorkerInspectorProxy> m_proxy;
String m_id;
bool m_connected;

Powered by Google App Engine
This is Rietveld 408576698