1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

android_webview / browser / tracing / aw_trace_event_args_allowlist.h [blame]

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ANDROID_WEBVIEW_BROWSER_TRACING_AW_TRACE_EVENT_ARGS_ALLOWLIST_H_
#define ANDROID_WEBVIEW_BROWSER_TRACING_AW_TRACE_EVENT_ARGS_ALLOWLIST_H_

#include <string>

#include "base/trace_event/trace_event_impl.h"

namespace android_webview {

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

// Used to filter metadata events that have been manually vetted to not include
// any PII.
bool IsTraceMetadataAllowlisted(const std::string& name);

}  // namespace android_webview

#endif  // ANDROID_WEBVIEW_BROWSER_TRACING_AW_TRACE_EVENT_ARGS_ALLOWLIST_H_