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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_h.template

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/platform/inspector_protocol/Dispatcher_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_h.template b/third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_h.template
deleted file mode 100644
index a76ca1085a5ffd6e1f567e637704e11678be49f0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/inspector_protocol/Dispatcher_h.template
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file is generated
-
-// Copyright (c) 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef {{class_name}}_h
-#define {{class_name}}_h
-
-#include "platform/inspector_protocol/Backend.h"
-#include "platform/inspector_protocol/TypeBuilder.h"
-
-namespace blink {
-namespace protocol {
-
-class FrontendChannel;
-class DispatcherImplWeakPtr;
-
-class PLATFORM_EXPORT Dispatcher {
-public:
- static std::unique_ptr<Dispatcher> create(FrontendChannel* frontendChannel);
- virtual ~Dispatcher() { }
-
-{% for domain in api.domains %}
- virtual void registerAgent(blink::protocol::{{domain.domain}}::Backend*) = 0;
-{% endfor %}
-
- virtual void clearFrontend() = 0;
-
- enum CommonErrorCode {
- ParseError = 0,
- InvalidRequest,
- MethodNotFound,
- InvalidParams,
- InternalError,
- ServerError,
- LastEntry,
- };
-
- void reportProtocolError(int callId, CommonErrorCode, const String16& errorMessage) const;
- virtual void reportProtocolError(int callId, CommonErrorCode, const String16& errorMessage, ErrorSupport*) const = 0;
- virtual void dispatch(const String16& message) = 0;
- static bool getCommandName(const String16& message, String16* result);
-};
-
-} // namespace protocol
-} // namespace blink
-
-#endif // !defined({{class_name}}_h)

Powered by Google App Engine
This is Rietveld 408576698