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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 4 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/FrontendChannel_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/FrontendChannel_h.template b/third_party/WebKit/Source/platform/inspector_protocol/FrontendChannel_h.template
index ead1491ed2826246a6f58bc7f54b2fa0ee5a10e0..64701e65f4b224a52a3e63572260458de2589f50 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/FrontendChannel_h.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/FrontendChannel_h.template
@@ -2,24 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef FrontendChannel_h
-#define FrontendChannel_h
+#ifndef {{"_".join(config.protocol.namespace)}}_FrontendChannel_h
+#define {{"_".join(config.protocol.namespace)}}_FrontendChannel_h
-//#include "String16.h"
-#include "{{config.class_export.header}}"
-
-namespace blink {
-namespace protocol {
+{% for namespace in config.protocol.namespace %}
+namespace {{namespace}} {
+{% endfor %}
class {{config.class_export.macro}} FrontendChannel {
public:
virtual ~FrontendChannel() { }
- virtual void sendProtocolResponse(int callId, const String16& message) = 0;
- virtual void sendProtocolNotification(const String16& message) = 0;
+ virtual void sendProtocolResponse(int callId, const String& message) = 0;
+ virtual void sendProtocolNotification(const String& message) = 0;
virtual void flushProtocolNotifications() = 0;
};
-} // namespace protocol
-} // namespace blink
+{% for namespace in config.protocol.namespace %}
+} // namespace {{namespace}}
+{% endfor %}
-#endif // !defined(FrontendChannel_h)
+#endif // !defined({{"_".join(config.protocol.namespace)}}_FrontendChannel_h)

Powered by Google App Engine
This is Rietveld 408576698