OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_ |
| 6 #define SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_ |
| 7 |
| 8 #include "services/resource_coordinator/public/interfaces/tracing/tracing.mojom.
h" |
| 9 #include "services/resource_coordinator/tracing/coordinator_impl.h" |
| 10 #include "services/service_manager/public/cpp/binder_registry.h" |
| 11 #include "services/service_manager/public/cpp/service.h" |
| 12 |
| 13 namespace resource_coordinator { |
| 14 namespace tracing { |
| 15 |
| 16 class Service : public service_manager::Service { |
| 17 public: |
| 18 Service(); |
| 19 ~Service() override; |
| 20 |
| 21 private: |
| 22 // service_manager::Service |
| 23 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
| 24 const std::string& interface_name, |
| 25 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 26 |
| 27 // Binders |
| 28 void BindAgentSetRequest(const service_manager::BindSourceInfo& source_info, |
| 29 mojom::AgentSetRequest request); |
| 30 void BindCoordinatorRequest( |
| 31 const service_manager::BindSourceInfo& source_info, |
| 32 mojom::CoordinatorRequest request); |
| 33 |
| 34 CoordinatorImpl coordinator_; |
| 35 service_manager::BinderRegistry registry_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(Service); |
| 38 }; |
| 39 |
| 40 } // namespace tracing |
| 41 } // namespace resource_coordinator |
| 42 |
| 43 #endif // SERVICES_RESOURCE_COORDINATOR_TRACING_SERVICE_H_ |
OLD | NEW |