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

Unified Diff: content/public/browser/tracing_delegate.h

Issue 1502583003: [Tracing] Add metadata filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile failure on win Created 5 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
« no previous file with comments | « content/public/browser/tracing_controller.h ('k') | content/public/browser/tracing_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/tracing_delegate.h
diff --git a/content/public/browser/tracing_delegate.h b/content/public/browser/tracing_delegate.h
index e72e71b23565fd3043a584231fd9638708b26f8b..8b9a224ef7237b6ac5a6386b1dcd1aec1452041d 100644
--- a/content/public/browser/tracing_delegate.h
+++ b/content/public/browser/tracing_delegate.h
@@ -5,6 +5,9 @@
#ifndef CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_
#define CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_
+#include <string>
+
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
@@ -21,6 +24,9 @@ namespace content {
class BackgroundTracingConfig;
class TraceUploader;
+typedef base::Callback<bool(const std::string& metadata_name)>
+ MetadataFilterPredicate;
+
// This can be implemented by the embedder to provide functionality for the
// about://tracing WebUI.
class CONTENT_EXPORT TracingDelegate {
@@ -42,6 +48,8 @@ class CONTENT_EXPORT TracingDelegate {
// Used to add any additional metadata to traces.
virtual void GenerateMetadataDict(base::DictionaryValue* metadata_dict) {}
+
+ virtual MetadataFilterPredicate GetMetadataFilterPredicate();
};
} // namespace content
« no previous file with comments | « content/public/browser/tracing_controller.h ('k') | content/public/browser/tracing_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698