summaryrefslogtreecommitdiffstats
path: root/chrome/common/trace_event_args_whitelist.h
blob: ffff5190455130a1f5079415b343cb1546c54da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_
#define CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_

#include "base/trace_event/trace_event_impl.h"

// Used to filter trace event arguments against a whitelist of events that
// have been manually vetted to not include any PII.
bool IsTraceEventArgsWhitelisted(
    const char* category_group_name,
    const char* event_name,
    base::trace_event::ArgumentNameFilterPredicate* arg_name_filter);

// Used to filter metadata against a whitelist of metadata names that have been
// manually vetted to not include any PII.
bool IsMetadataWhitelisted(const std::string& metadata_name);

#endif  // CHROME_COMMON_TRACE_EVENT_ARGS_WHITELIST_H_