Remove enable-accessibility-script-injection flag.
[chromium-blink-merge.git] / mojo / common / tracing_impl.h
blob9b9cf478dd2d20c9bb9b7e4ea822e51ed454bf9a
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 "base/memory/scoped_ptr.h"
10 #include "mojo/application/public/cpp/interface_factory.h"
11 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
13 namespace mojo {
15 class ApplicationImpl;
17 class TracingImpl : public InterfaceFactory<tracing::TraceController> {
18 public:
19 TracingImpl();
20 ~TracingImpl() override;
22 // This connects to the tracing service and registers ourselves to provide
23 // tracing data on demand.
24 void Initialize(ApplicationImpl* app);
26 private:
27 // InterfaceFactory<tracing::TraceController> implementation.
28 void Create(ApplicationConnection* connection,
29 InterfaceRequest<tracing::TraceController> request) override;
31 scoped_ptr<ApplicationConnection> connection_;
33 DISALLOW_COPY_AND_ASSIGN(TracingImpl);
36 } // namespace mojo
38 #endif // MOJO_COMMON_TRACING_IMPL_H_