| Index: services/resource_coordinator/tracing/service.h
|
| diff --git a/services/resource_coordinator/tracing/service.h b/services/resource_coordinator/tracing/service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..89d149c866f46f7ab2c4dba4b351dee90b3c1c1d
|
| --- /dev/null
|
| +++ b/services/resource_coordinator/tracing/service.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2017 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 SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_
|
| +#define SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_
|
| +
|
| +#include "services/resource_coordinator/public/interfaces/tracing/tracing.mojom.h"
|
| +#include "services/resource_coordinator/tracing/coordinator_impl.h"
|
| +#include "services/service_manager/public/cpp/binder_registry.h"
|
| +#include "services/service_manager/public/cpp/service.h"
|
| +
|
| +namespace resource_coordinator {
|
| +namespace tracing {
|
| +
|
| +class Service : public service_manager::Service {
|
| + public:
|
| + Service();
|
| + ~Service() override;
|
| +
|
| + private:
|
| + // service_manager::Service
|
| + void OnBindInterface(const service_manager::BindSourceInfo& source_info,
|
| + const std::string& interface_name,
|
| + mojo::ScopedMessagePipeHandle interface_pipe) override;
|
| +
|
| + // Binders
|
| + void BindAgentSetRequest(const service_manager::BindSourceInfo& source_info,
|
| + mojom::AgentSetRequest request);
|
| + void BindCoordinatorRequest(
|
| + const service_manager::BindSourceInfo& source_info,
|
| + mojom::CoordinatorRequest request);
|
| +
|
| + CoordinatorImpl coordinator_;
|
| + service_manager::BinderRegistry registry_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(Service);
|
| +};
|
| +
|
| +} // namespace tracing
|
| +} // namespace resource_coordinator
|
| +
|
| +#endif // SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_
|
|
|