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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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