summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/tracing_service.h
blob: 274aeb691eccbec970af6a682e6d073a49262f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2019 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 CONTENT_PUBLIC_BROWSER_TRACING_SERVICE_H_
#define CONTENT_PUBLIC_BROWSER_TRACING_SERVICE_H_

#include "content/common/content_export.h"
#include "services/tracing/public/mojom/tracing_service.mojom.h"

namespace content {

// Returns an interface to the global instance of the Tracing service. The
// service is started lazily as-needed, so this always returns a valid interface
// reference.
//
// Must be called on the UI thread only.
CONTENT_EXPORT tracing::mojom::TracingService& GetTracingService();

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_TRACING_SERVICE_H_