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

Unified Diff: third_party/WebKit/Source/platform/probe/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
« no previous file with comments | « third_party/WebKit/Source/platform/probe/templates/InstrumentingProbesInl.h.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl
diff --git a/third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl b/third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl
deleted file mode 100644
index af292a0400ffdc660080b8247ea63624108cc052..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/probe/templates/ProbeSink.h.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-// This file is generated from {{input_file}}
-
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-{% set sink_class = (name | to_singular) + "Sink" %}
-
-#ifndef {{sink_class}}_h
-#define {{sink_class}}_h
-
-#include "platform/heap/HeapAllocator.h"
-{% for define in defines %}
-{{define}}
-{% endfor %}
-
-namespace blink {
-
-{% for agent in agents %}
-class {{ agent | agent_name_to_class }};
-{% endfor %}
-
-class PROBE_EXPORT {{sink_class}} : public GarbageCollected<{{sink_class}}> {
- WTF_MAKE_NONCOPYABLE({{sink_class}});
-
- public:
- {{sink_class}}();
- DECLARE_TRACE();
-
-{% for agent in agents %}
-{% set class_name = agent | agent_name_to_class %}
-{% set getter_name = class_name | to_lower_case %}
- bool has{{class_name}}s() const { return m_has{{class_name}}s; }
- const HeapHashSet<Member<{{class_name}}>>& {{getter_name}}s() const { return m_{{getter_name}}s; }
- void add{{class_name}}({{class_name}}* agent);
- void remove{{class_name}}({{class_name}}* agent);
-
-{% endfor %}
- private:
-{% for agent in agents %}
-{% set class_name = agent | agent_name_to_class %}
-{% set getter_name = class_name | to_lower_case %}
- HeapHashSet<Member<{{class_name}}>> m_{{getter_name}}s;
- bool m_has{{class_name}}s = false;
-{% endfor %}
-};
-
-} // namespace blink
-
-#endif // !defined({{sink_class}}_h)
« no previous file with comments | « third_party/WebKit/Source/platform/probe/templates/InstrumentingProbesInl.h.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698