| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ | 5 #ifndef CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ |
| 6 #define CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ | 6 #define CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ |
| 7 | 7 |
| 8 #include "base/trace_event/trace_event_impl.h" | 8 #include "base/trace_event/trace_event_impl.h" |
| 9 | 9 |
| 10 // Used to filter trace event arguments against a whitelist of events that | 10 // Used to filter trace event arguments against a whitelist of events that |
| 11 // have been manually vetted to not include any PII. | 11 // have been manually vetted to not include any PII. |
| 12 bool IsTraceEventArgsWhitelisted( | 12 bool IsTraceEventArgsWhitelisted( |
| 13 const char* category_group_name, | 13 const char* category_group_name, |
| 14 const char* event_name, | 14 const char* event_name, |
| 15 base::trace_event::ArgumentNameFilterPredicate* arg_name_filter); | 15 base::trace_event::ArgumentNameFilterPredicate* arg_name_filter); |
| 16 | 16 |
| 17 // Used to filter metadata against a whitelist of metadata names that have been |
| 18 // manually vetted to not include any PII. |
| 19 bool IsMetadataWhitelisted(const std::string& metadata_name); |
| 20 |
| 17 #endif // CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ | 21 #endif // CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_ |
| OLD | NEW |