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

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

Issue 1148633007: Hooked the trace event argument whitelist up to the background_trace_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Buildfix 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/browser/tracing/background_tracing_manager_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/background_tracing_manager.h
diff --git a/content/public/browser/background_tracing_manager.h b/content/public/browser/background_tracing_manager.h
index 87f327980fb305e8d8f3c147604664d37a001c73..75e2d340cd8d46bb96dda3ced749ee7ef25e0acb 100644
--- a/content/public/browser/background_tracing_manager.h
+++ b/content/public/browser/background_tracing_manager.h
@@ -39,8 +39,8 @@ class BackgroundTracingManager {
// );
// }
//
- typedef base::Callback<void(const base::RefCountedString*, base::Closure)>
- ReceiveCallback;
+ typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&,
+ base::Closure)> ReceiveCallback;
// Set the triggering rules for when to start recording.
//
@@ -57,9 +57,13 @@ class BackgroundTracingManager {
// Calls to SetActiveScenario() with a config will fail if tracing is
// currently on. Use WhenIdle to register a callback to get notified when
// the manager is idle and a config can be set again.
+ enum DataFiltering {
+ NO_DATA_FILTERING,
+ ANONYMIZE_DATA,
+ };
virtual bool SetActiveScenario(scoped_ptr<BackgroundTracingConfig> config,
const ReceiveCallback& receive_callback,
- bool requires_anonymized_data) = 0;
+ DataFiltering data_filtering) = 0;
// Notifies the caller when the manager is idle (not recording or uploading),
// so that a call to SetActiveScenario() is likely to succeed.
@@ -84,7 +88,8 @@ class BackgroundTracingManager {
virtual void GetTriggerNameList(std::vector<std::string>* trigger_names) = 0;
virtual void InvalidateTriggerHandlesForTesting() = 0;
-
+ virtual void SetTracingEnabledCallbackForTesting(
+ const base::Closure& callback) = 0;
virtual void FireTimerForTesting() = 0;
protected:
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698