Index: content/public/browser/tracing_delegate.h |
diff --git a/content/public/browser/tracing_delegate.h b/content/public/browser/tracing_delegate.h |
index 5fab907c1022e8cfecbcddc1029357abf15f92d7..b7cfa2d4fb0e4ec3af16ec47adf63723599ad63c 100644 |
--- a/content/public/browser/tracing_delegate.h |
+++ b/content/public/browser/tracing_delegate.h |
@@ -6,23 +6,38 @@ |
#define CONTENT_PUBLIC_BROWSER_TRACING_DELEGATE_H_ |
#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
+ |
+namespace base { |
+class Time; |
+} |
namespace net { |
class URLRequestContextGetter; |
} |
namespace content { |
+struct BackgroundTracingConfig; |
class TraceUploader; |
// This can be implemented by the embedder to provide functionality for the |
// about://tracing WebUI. |
-class TracingDelegate { |
+class CONTENT_EXPORT TracingDelegate { |
public: |
virtual ~TracingDelegate() {} |
// Provide trace uploading functionality; see trace_uploader.h. |
virtual scoped_ptr<TraceUploader> GetTraceUploader( |
net::URLRequestContextGetter* request_context) = 0; |
+ |
+ // This can be used to veto a particular background tracing scenario. |
+ virtual bool IsAllowedToBeginBackgroundScenario( |
+ const BackgroundTracingConfig& config, |
+ bool requires_anonymized_data); |
+ |
+ virtual bool IsAllowedToEndBackgroundScenario( |
+ const content::BackgroundTracingConfig& config, |
+ bool requires_anonymized_data); |
}; |
} // namespace content |