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

Unified Diff: content/browser/devtools/protocol/inspector_handler.h

Issue 2548263002: [DevTools] Migrate dom, emulation, inspector, network, page and schema handlers to new generator. (Closed)
Patch Set: rebased atop of roll Created 4 years 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: content/browser/devtools/protocol/inspector_handler.h
diff --git a/content/browser/devtools/protocol/inspector_handler.h b/content/browser/devtools/protocol/inspector_handler.h
index cee8949b4251e6192d6e6a76f7444a8e9bd489eb..6bd0c375d0f98b9cf1b2ac7a8d75e3c9ee291c4b 100644
--- a/content/browser/devtools/protocol/inspector_handler.h
+++ b/content/browser/devtools/protocol/inspector_handler.h
@@ -6,40 +6,36 @@
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
#include "base/macros.h"
-#include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
+#include "content/browser/devtools/protocol/inspector.h"
namespace content {
class RenderFrameHostImpl;
-namespace devtools {
-namespace inspector {
+namespace protocol {
-class InspectorHandler {
+class InspectorHandler : public Inspector::Backend {
public:
- using Response = DevToolsProtocolClient::Response;
-
InspectorHandler();
- virtual ~InspectorHandler();
+ ~InspectorHandler() override;
- void SetClient(std::unique_ptr<Client> client);
+ void Wire(UberDispatcher*);
void SetRenderFrameHost(RenderFrameHostImpl* host);
void TargetCrashed();
void TargetDetached(const std::string& reason);
- Response Enable();
- Response Disable();
+ Response Enable() override;
+ Response Disable() override;
private:
- std::unique_ptr<Client> client_;
+ std::unique_ptr<Inspector::Frontend> frontend_;
RenderFrameHostImpl* host_;
DISALLOW_COPY_AND_ASSIGN(InspectorHandler);
};
-} // namespace inspector
-} // namespace devtools
+} // namespace protocol
} // namespace content
#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/protocol/inspector_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698