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

Side by Side Diff: services/shape_detection/shape_detection_service.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_ 5 #ifndef SERVICES_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_
6 #define SERVICES_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_ 6 #define SERVICES_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "services/service_manager/public/cpp/binder_registry.h" 12 #include "services/service_manager/public/cpp/binder_registry.h"
13 #include "services/service_manager/public/cpp/service.h" 13 #include "services/service_manager/public/cpp/service.h"
14 #include "services/service_manager/public/cpp/service_context_ref.h" 14 #include "services/service_manager/public/cpp/service_context_ref.h"
15 15
16 namespace shape_detection { 16 namespace shape_detection {
17 17
18 class ShapeDetectionService : public service_manager::Service { 18 class ShapeDetectionService : public service_manager::Service {
19 public: 19 public:
20 // Factory function for use as an embedded service. 20 // Factory function for use as an embedded service.
21 static std::unique_ptr<service_manager::Service> Create(); 21 static std::unique_ptr<service_manager::Service> Create();
22 22
23 ShapeDetectionService(); 23 ShapeDetectionService();
24 ~ShapeDetectionService() override; 24 ~ShapeDetectionService() override;
25 25
26 void OnStart() override; 26 void OnStart() override;
27 void OnBindInterface(const service_manager::ServiceInfo& source_info, 27 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
28 const std::string& interface_name, 28 const std::string& interface_name,
29 mojo::ScopedMessagePipeHandle interface_pipe) override; 29 mojo::ScopedMessagePipeHandle interface_pipe) override;
30 30
31 private: 31 private:
32 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_; 32 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_;
33 service_manager::BinderRegistry registry_; 33 service_manager::BinderRegistry registry_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(ShapeDetectionService); 35 DISALLOW_COPY_AND_ASSIGN(ShapeDetectionService);
36 }; 36 };
37 37
38 } // namespace shape_detection 38 } // namespace shape_detection
39 39
40 #endif // SERVICES_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_ 40 #endif // SERVICES_SHAPE_DETECTION_SHAPE_DETECTION_SERVICE_H_
OLDNEW
« no previous file with comments | « services/service_manager/tests/shutdown/shutdown_service_app.cc ('k') | services/shape_detection/shape_detection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698