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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorBaseAgent.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/InspectorBaseAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
index 036b74855949e65919fd551e784e9248bcce99e4..7b1ab6957f9bf28edf8a2fce82664b77f2bf38ad 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
@@ -32,17 +32,18 @@
#define InspectorBaseAgent_h
#include "core/CoreExport.h"
-#include "core/InspectorBackendDispatcher.h"
#include "core/inspector/InstrumentingAgents.h"
#include "platform/JSONValues.h"
#include "platform/heap/Handle.h"
+#include "platform/inspector_protocol/Dispatcher.h"
+#include "platform/inspector_protocol/Frontend.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class InspectorFrontend;
+class Frontend;
class InstrumentingAgents;
class LocalFrame;
@@ -54,11 +55,11 @@ public:
DECLARE_VIRTUAL_TRACE();
virtual void init() { }
- virtual void setFrontend(InspectorFrontend*) = 0;
+ virtual void setFrontend(protocol::Frontend*) = 0;
virtual void clearFrontend() = 0;
virtual void disable(ErrorString*) { }
virtual void restore() { }
- virtual void registerInDispatcher(InspectorBackendDispatcher*) = 0;
+ virtual void registerInDispatcher(protocol::Dispatcher*) = 0;
virtual void discardAgent() { }
virtual void didCommitLoadForLocalFrame(LocalFrame*) { }
virtual void flushPendingProtocolNotifications() { }
@@ -82,10 +83,10 @@ public:
explicit InspectorAgentRegistry(InstrumentingAgents*);
void append(PassOwnPtrWillBeRawPtr<InspectorAgent>);
- void setFrontend(InspectorFrontend*);
+ void setFrontend(protocol::Frontend*);
void clearFrontend();
void restore(const String& savedState);
- void registerInDispatcher(InspectorBackendDispatcher*);
+ void registerInDispatcher(protocol::Dispatcher*);
void discardAgents();
void flushPendingProtocolNotifications();
void didCommitLoadForLocalFrame(LocalFrame*);
@@ -104,7 +105,7 @@ class InspectorBaseAgent : public InspectorAgent {
public:
~InspectorBaseAgent() override { }
- void setFrontend(InspectorFrontend* frontend) override
+ void setFrontend(protocol::Frontend* frontend) override
{
ASSERT(!m_frontend);
m_frontend = FrontendClass::from(frontend);
@@ -118,7 +119,7 @@ public:
m_frontend = nullptr;
}
- void registerInDispatcher(InspectorBackendDispatcher* dispatcher) final
+ void registerInDispatcher(protocol::Dispatcher* dispatcher) final
{
dispatcher->registerAgent(static_cast<AgentClass*>(this));
}

Powered by Google App Engine
This is Rietveld 408576698