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

Side by Side Diff: services/tracing/service.h

Issue 2701883002: service_manager: More consistent Service lifecycle API (Closed)
Patch Set: . Created 3 years, 10 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
« no previous file with comments | « services/shape_detection/shape_detection_service.cc ('k') | services/tracing/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SERVICE_H_ 5 #ifndef SERVICES_TRACING_SERVICE_H_
6 #define SERVICES_TRACING_SERVICE_H_ 6 #define SERVICES_TRACING_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 public mojom::Collector, 31 public mojom::Collector,
32 public mojom::StartupPerformanceDataCollector { 32 public mojom::StartupPerformanceDataCollector {
33 public: 33 public:
34 Service(); 34 Service();
35 ~Service() override; 35 ~Service() override;
36 36
37 private: 37 private:
38 // service_manager::Service implementation. 38 // service_manager::Service implementation.
39 bool OnConnect(const service_manager::ServiceInfo& remote_info, 39 bool OnConnect(const service_manager::ServiceInfo& remote_info,
40 service_manager::InterfaceRegistry* registry) override; 40 service_manager::InterfaceRegistry* registry) override;
41 bool OnStop() override; 41 bool OnServiceManagerConnectionLost() override;
42 42
43 // service_manager::InterfaceFactory<mojom::Factory>: 43 // service_manager::InterfaceFactory<mojom::Factory>:
44 void Create(const service_manager::Identity& remote_identity, 44 void Create(const service_manager::Identity& remote_identity,
45 mojom::FactoryRequest request) override; 45 mojom::FactoryRequest request) override;
46 46
47 // service_manager::InterfaceFactory<mojom::Collector>: 47 // service_manager::InterfaceFactory<mojom::Collector>:
48 void Create(const service_manager::Identity& remote_identity, 48 void Create(const service_manager::Identity& remote_identity,
49 mojom::CollectorRequest request) override; 49 mojom::CollectorRequest request) override;
50 50
51 // service_manager::InterfaceFactory<mojom::StartupPerformanceDataCollector>: 51 // service_manager::InterfaceFactory<mojom::StartupPerformanceDataCollector>:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 mojom::StartupPerformanceTimes startup_performance_times_; 83 mojom::StartupPerformanceTimes startup_performance_times_;
84 bool tracing_active_; 84 bool tracing_active_;
85 std::string tracing_categories_; 85 std::string tracing_categories_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(Service); 87 DISALLOW_COPY_AND_ASSIGN(Service);
88 }; 88 };
89 89
90 } // namespace tracing 90 } // namespace tracing
91 91
92 #endif // SERVICES_TRACING_SERVICE_H_ 92 #endif // SERVICES_TRACING_SERVICE_H_
OLDNEW
« no previous file with comments | « services/shape_detection/shape_detection_service.cc ('k') | services/tracing/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698