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

Unified Diff: base/trace_event/trace_log.h

Issue 2549103003: tracing: split trace event filter classes out of TraceLog (Closed)
Patch Set: . Created 4 years 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: base/trace_event/trace_log.h
diff --git a/base/trace_event/trace_log.h b/base/trace_event/trace_log.h
index 68a7fbbcb1751a54ee590f2e031b4db60b44b672..c86675177fe7000891be12632c63ed6c87f8bc92 100644
--- a/base/trace_event/trace_log.h
+++ b/base/trace_event/trace_log.h
@@ -281,24 +281,6 @@ class BASE_EXPORT TraceLog : public MemoryDumpProvider {
// Allows deleting our singleton instance.
static void DeleteForTesting();
- class BASE_EXPORT TraceEventFilter {
- public:
- static const char* const kEventWhitelistPredicate;
- static const char* const kHeapProfilerPredicate;
-
- TraceEventFilter() {}
- virtual ~TraceEventFilter() {}
- virtual bool FilterTraceEvent(const TraceEvent& trace_event) const = 0;
- virtual void EndEvent(const char* category_group, const char* name) {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TraceEventFilter);
- };
- typedef std::unique_ptr<TraceEventFilter> (
- *TraceEventFilterConstructorForTesting)(void);
- static void SetTraceEventFilterConstructorForTesting(
- TraceEventFilterConstructorForTesting predicate);
-
// Allow tests to inspect TraceEvents.
TraceEvent* GetEventByHandle(TraceEventHandle handle);

Powered by Google App Engine
This is Rietveld 408576698