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

Unified Diff: base/trace_event/trace_event_impl.h

Issue 1126553005: Set the content/ trace event PII whitelist to be the arg-filtering predicate in TraceLog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@final_dropargs_predicate
Patch Set: Created 5 years, 7 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 | « no previous file | base/trace_event/trace_event_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event_impl.h
diff --git a/base/trace_event/trace_event_impl.h b/base/trace_event/trace_event_impl.h
index bfbbefa0158e3b6977ceb401c0f3ed6b6d3a1e86..30b2a63df2ddfe732a0f3930e81a033143428d50 100644
--- a/base/trace_event/trace_event_impl.h
+++ b/base/trace_event/trace_event_impl.h
@@ -386,12 +386,14 @@ struct BASE_EXPORT TraceOptions {
TraceOptions()
: record_mode(RECORD_UNTIL_FULL),
enable_sampling(false),
- enable_systrace(false) {}
+ enable_systrace(false),
+ enable_args_whitelist(false) {}
explicit TraceOptions(TraceRecordMode record_mode)
: record_mode(record_mode),
enable_sampling(false),
- enable_systrace(false) {}
+ enable_systrace(false),
+ enable_args_whitelist(false) {}
// |options_string| is a comma-delimited list of trace options.
// Possible options are: "record-until-full", "record-continuously",
@@ -422,6 +424,7 @@ struct BASE_EXPORT TraceOptions {
TraceRecordMode record_mode;
bool enable_sampling;
bool enable_systrace;
+ bool enable_args_whitelist;
};
struct BASE_EXPORT TraceLogStatus {
@@ -752,6 +755,7 @@ class BASE_EXPORT TraceLog {
static const InternalTraceOptions kInternalEchoToConsole;
static const InternalTraceOptions kInternalEnableSampling;
static const InternalTraceOptions kInternalRecordAsMuchAsPossible;
+ static const InternalTraceOptions kInternalEnableArgsWhitelist;
// This lock protects TraceLog member accesses (except for members protected
// by thread_info_lock_) from arbitrary threads.
« no previous file with comments | « no previous file | base/trace_event/trace_event_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698