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

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

Issue 1164023002: Slow Reports: Set a minimum time in between reports, and check for OTR sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Buildfixes Created 5 years, 6 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 | « content/content_browser.gypi ('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 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/tracing_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698