Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: services/resource_coordinator/tracing/service.h

Issue 2833873003: WIP: The tracing service prototype
Patch Set: sync Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « services/resource_coordinator/tracing/recorder_impl.cc ('k') | services/resource_coordinator/tracing/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698