Use the WebBluetoothErrorMessage enum to avoid sending message strings over IPC.
[chromium-blink-merge.git] / mojo / common / tracing_impl.h
blobd159b01538587806c43a2131a988ac693a410586
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_COMMON_TRACING_IMPL_H_
6 #define MOJO_COMMON_TRACING_IMPL_H_
8 #include "base/macros.h"
9 #include "mojo/application/public/cpp/interface_factory.h"
10 #include "mojo/services/tracing/tracing.mojom.h"
12 namespace mojo {
14 class ApplicationImpl;
16 class TracingImpl : public InterfaceFactory<tracing::TraceController> {
17 public:
18 TracingImpl();
19 ~TracingImpl() override;
21 // This connects to the tracing service and registers ourselves to provide
22 // tracing data on demand.
23 void Initialize(ApplicationImpl* app);
25 private:
26 // InterfaceFactory<tracing::TraceController> implementation.
27 void Create(ApplicationConnection* connection,
28 InterfaceRequest<tracing::TraceController> request) override;
30 DISALLOW_COPY_AND_ASSIGN(TracingImpl);
33 } // namespace mojo
35 #endif // MOJO_COMMON_TRACING_IMPL_H_