| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ | 5 #ifndef SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ |
| 6 #define SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ | 6 #define SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Factory function for use as an embedded service. | 22 // Factory function for use as an embedded service. |
| 23 static std::unique_ptr<service_manager::Service> Create(); | 23 static std::unique_ptr<service_manager::Service> Create(); |
| 24 | 24 |
| 25 // service_manager::Service: | 25 // service_manager::Service: |
| 26 void OnStart() override; | 26 void OnStart() override; |
| 27 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 27 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 28 service_manager::InterfaceRegistry* registry) override; | 28 service_manager::InterfaceRegistry* registry) override; |
| 29 bool OnStop() override; | 29 bool OnStop() override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 void MaybeRequestQuitDelayed(); | |
| 33 void MaybeRequestQuit(); | |
| 34 | |
| 35 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_; | 32 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_; |
| 36 | 33 |
| 37 DISALLOW_COPY_AND_ASSIGN(ImageDecoderService); | 34 DISALLOW_COPY_AND_ASSIGN(ImageDecoderService); |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 } // namespace image_decoder | 37 } // namespace image_decoder |
| 41 | 38 |
| 42 #endif // SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ | 39 #endif // SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ |
| OLD | NEW |