| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ | 5 #ifndef SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ |
| 6 #define SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ | 6 #define SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "services/shell/public/cpp/interface_factory.h" | 9 #include "services/shell/public/cpp/interface_factory.h" |
| 10 #include "services/tracing/public/cpp/trace_provider_impl.h" | 10 #include "services/tracing/public/cpp/trace_provider_impl.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // This connects to the tracing service and registers ourselves to provide | 35 // This connects to the tracing service and registers ourselves to provide |
| 36 // tracing data on demand. | 36 // tracing data on demand. |
| 37 void Initialize(shell::Connector* connector, const std::string& url); | 37 void Initialize(shell::Connector* connector, const std::string& url); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // InterfaceFactory<tracing::TraceProvider> implementation. | 40 // InterfaceFactory<tracing::TraceProvider> implementation. |
| 41 void Create(shell::Connection* connection, | 41 void Create(shell::Connection* connection, |
| 42 InterfaceRequest<tracing::TraceProvider> request) override; | 42 InterfaceRequest<tracing::TraceProvider> request) override; |
| 43 | 43 |
| 44 scoped_ptr<shell::Connection> connection_; | 44 std::unique_ptr<shell::Connection> connection_; |
| 45 TraceProviderImpl provider_impl_; | 45 TraceProviderImpl provider_impl_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(TracingImpl); | 47 DISALLOW_COPY_AND_ASSIGN(TracingImpl); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace mojo | 50 } // namespace mojo |
| 51 | 51 |
| 52 #endif // SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ | 52 #endif // SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_ |
| OLD | NEW |