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

Unified Diff: third_party/WebKit/Source/platform/instrumentation/InstrumentingProbesImpl_h.template

Issue 2760363002: [instrumentation] Generalize instrumentation to be used beyond the core layer (Closed)
Patch Set: 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/platform/instrumentation/InstrumentingProbesImpl_h.template
diff --git a/third_party/WebKit/Source/core/inspector/InstrumentingProbesImpl_h.template b/third_party/WebKit/Source/platform/instrumentation/InstrumentingProbesImpl_h.template
similarity index 82%
rename from third_party/WebKit/Source/core/inspector/InstrumentingProbesImpl_h.template
rename to third_party/WebKit/Source/platform/instrumentation/InstrumentingProbesImpl_h.template
index d7e2cd0a1ede759fd984ddadbac0c7cc817e6597..db28b1dd4158a0bdd240dd5475476d05466c0a81 100644
--- a/third_party/WebKit/Source/core/inspector/InstrumentingProbesImpl_h.template
+++ b/third_party/WebKit/Source/platform/instrumentation/InstrumentingProbesImpl_h.template
@@ -7,10 +7,15 @@
#ifndef {{file.header_name}}_h
#define {{file.header_name}}_h
+#include "platform/heap/HeapAllocator.h"
{% for include in file.includes %}
{{include}}
{% endfor %}
+{% for define in file.defines %}
+{{define}}
+{% endfor %}
+
namespace blink {
{% for forward_decl in file.forward_declarations %}
@@ -32,7 +37,7 @@ namespace probe {
{% if probe.is_scoped %}
-class CORE_EXPORT {{probe.name}} : public ProbeBase {
+class PROBE_EXPORT {{probe.name}} : public ProbeBase {
STACK_ALLOCATED()
public:
explicit {{probe.name}}({{ params_decl(probe) }});
@@ -43,7 +48,7 @@ class CORE_EXPORT {{probe.name}} : public ProbeBase {
};
{%- else %}
-CORE_EXPORT {{probe.return_type}} {{probe.name}}({{ params_decl(probe) }});
+PROBE_EXPORT {{probe.return_type}} {{probe.name}}({{ params_decl(probe) }});
{%- endif %}
{%- endfor %}

Powered by Google App Engine
This is Rietveld 408576698