Index: third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template |
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template b/third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template |
index f837bff388e1544e364fc0ae6ca4f3456e9c5958..16edb4c6a65ace727f0d5e782fc3b2c1c30743fa 100644 |
--- a/third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template |
+++ b/third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template |
@@ -2,42 +2,39 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef ErrorSupport_h |
-#define ErrorSupport_h |
+#ifndef {{"_".join(config.protocol.namespace)}}_ErrorSupport_h |
+#define {{"_".join(config.protocol.namespace)}}_ErrorSupport_h |
//#include "Platform.h" |
-//#include "String16.h" |
-#include "{{config.class_export.header}}" |
+//#include "String.h" |
-#include <vector> |
+{% for namespace in config.protocol.namespace %} |
+namespace {{namespace}} { |
+{% endfor %} |
-namespace blink { |
-namespace protocol { |
- |
-using ErrorString = String16; |
+using ErrorString = String; |
class {{config.class_export.macro}} ErrorSupport { |
public: |
ErrorSupport(); |
- ErrorSupport(String16* errorString); |
+ ErrorSupport(String* errorString); |
~ErrorSupport(); |
void push(); |
- void setName(const String16&); |
+ void setName(const String&); |
void pop(); |
- void addError(const String16&); |
+ void addError(const String&); |
bool hasErrors(); |
- String16 errors(); |
+ String errors(); |
private: |
- std::vector<String16> m_path; |
- std::vector<String16> m_errors; |
- String16* m_errorString; |
+ std::vector<String> m_path; |
+ std::vector<String> m_errors; |
+ String* m_errorString; |
}; |
-} // namespace platform |
-} // namespace blink |
- |
-using blink::protocol::ErrorString; |
+{% for namespace in config.protocol.namespace %} |
+} // namespace {{namespace}} |
+{% endfor %} |
-#endif // !defined(ErrorSupport_h) |
+#endif // !defined({{"_".join(config.protocol.namespace)}}_ErrorSupport_h) |