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

Unified Diff: content/browser/devtools/protocol/schema_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/schema_handler.h
diff --git a/content/browser/devtools/protocol/schema_handler.h b/content/browser/devtools/protocol/schema_handler.h
index e79e86c749c4777b626b0542eee20d7713371c47..33991ae40ae5079c7abe738aa8d2f665d00f4d1e 100644
--- a/content/browser/devtools/protocol/schema_handler.h
+++ b/content/browser/devtools/protocol/schema_handler.h
@@ -6,26 +6,27 @@
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SCHEMA_HANDLER_H_
#include "base/macros.h"
-#include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
+#include "content/browser/devtools/protocol/schema.h"
namespace content {
-namespace devtools {
-namespace schema {
+namespace protocol {
-class SchemaHandler {
+class SchemaHandler : public Schema::Backend {
public:
- using Response = DevToolsProtocolClient::Response;
-
SchemaHandler();
- ~SchemaHandler();
+ ~SchemaHandler() override;
+
+ void Wire(UberDispatcher*);
+ Response Disable() override;
+
+ Response GetDomains(
+ std::unique_ptr<protocol::Array<Schema::Domain>>* domains) override;
- Response GetDomains(std::vector<scoped_refptr<Domain>>* domains);
private:
DISALLOW_COPY_AND_ASSIGN(SchemaHandler);
};
-} // namespace schema
-} // namespace devtools
+} // namespace protocol
} // namespace content
#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SCHEMA_HANDLER_H_
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/browser/devtools/protocol/schema_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698