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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_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/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)

Powered by Google App Engine
This is Rietveld 408576698