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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ProbeSink.h.tmpl

Issue 2790973002: [instrumentation] Introduce JSON5 config files for probe generator. (Closed)
Patch Set: add missing config files Created 3 years, 9 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/build/scripts/templates/ProbeSink.h.tmpl
diff --git a/third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ProbeSink.h.tmpl
similarity index 89%
rename from third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl
rename to third_party/WebKit/Source/build/scripts/templates/ProbeSink.h.tmpl
index af292a0400ffdc660080b8247ea63624108cc052..2f8ba496791a5ebec78ac4271f5a48b96c5dfffc 100644
--- a/third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ProbeSink.h.tmpl
@@ -5,14 +5,12 @@
// found in the LICENSE file.
{% set sink_class = (name | to_singular) + "Sink" %}
+{% set export_symbol = config["settings"]["export_symbol"] %}
#ifndef {{sink_class}}_h
#define {{sink_class}}_h
#include "platform/heap/HeapAllocator.h"
-{% for define in defines %}
-{{define}}
-{% endfor %}
namespace blink {
@@ -20,7 +18,7 @@ namespace blink {
class {{ agent | agent_name_to_class }};
{% endfor %}
-class PROBE_EXPORT {{sink_class}} : public GarbageCollected<{{sink_class}}> {
+class {{export_symbol}} {{sink_class}} : public GarbageCollected<{{sink_class}}> {
WTF_MAKE_NONCOPYABLE({{sink_class}});
public:

Powered by Google App Engine
This is Rietveld 408576698