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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/Allocator_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Allocator_h.template b/third_party/WebKit/Source/platform/inspector_protocol/Allocator_h.template
index e38b76cd62b7d3fc12f54462e92312558e167bf9..8f8109d695c5976647454ce6ccb3d3c99eebe437 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Allocator_h.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Allocator_h.template
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef Allocator_h
-#define Allocator_h
+#ifndef {{"_".join(config.protocol.namespace)}}_Allocator_h
+#define {{"_".join(config.protocol.namespace)}}_Allocator_h
+
+{% for namespace in config.protocol.namespace %}
+namespace {{namespace}} {
+{% endfor %}
enum NotNullTagEnum { NotNullLiteral };
@@ -19,4 +23,8 @@ enum NotNullTagEnum { NotNullLiteral };
ClassName(const ClassName&) = delete; \
ClassName& operator=(const ClassName&) = delete
-#endif /* Allocator_h */
+{% for namespace in config.protocol.namespace %}
+} // namespace {{namespace}}
+{% endfor %}
+
+#endif // !defined({{"_".join(config.protocol.namespace)}}_Allocator_h)

Powered by Google App Engine
This is Rietveld 408576698