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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Maybe_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/Maybe_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Maybe_h.template b/third_party/WebKit/Source/platform/inspector_protocol/Maybe_h.template
index e15ac070da128752d945bf617f59304293b9c4bf..2096572ba7ba60a803638aa8aceb2a0e72d88fc6 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Maybe_h.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Maybe_h.template
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef Maybe_h
-#define Maybe_h
+#ifndef {{"_".join(config.protocol.namespace)}}_Maybe_h
+#define {{"_".join(config.protocol.namespace)}}_Maybe_h
-//#include "Platform.h"
-//#include "String16.h"
+//#include "Forward.h"
-namespace blink {
-namespace protocol {
+{% for namespace in config.protocol.namespace %}
+namespace {{namespace}} {
+{% endfor %}
template<typename T>
class Maybe {
@@ -66,22 +66,15 @@ public:
};
template<>
-class Maybe<InspectorProtocolConvenienceStringType> : public MaybeBase<InspectorProtocolConvenienceStringType> {
+class Maybe<String> : public MaybeBase<String> {
public:
Maybe() { }
- Maybe(const InspectorProtocolConvenienceStringType& value) : MaybeBase(value) { }
+ Maybe(const String& value) : MaybeBase(value) { }
using MaybeBase::operator=;
};
-template<>
-class Maybe<String16> : public MaybeBase<String16> {
-public:
- Maybe() { }
- Maybe(const String16& value) : MaybeBase(value) { }
- using MaybeBase::operator=;
-};
-
-} // namespace platform
-} // namespace blink
+{% for namespace in config.protocol.namespace %}
+} // namespace {{namespace}}
+{% endfor %}
-#endif // !defined(Maybe_h)
+#endif // !defined({{"_".join(config.protocol.namespace)}}_Maybe_h)

Powered by Google App Engine
This is Rietveld 408576698