| // 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 CHROME_UTILITY_MASH_SERVICE_FACTORY_H_ |
| #define CHROME_UTILITY_MASH_SERVICE_FACTORY_H_ |
| |
| #include "content/public/utility/content_utility_client.h" |
| #include "services/service_manager/public/mojom/service.mojom.h" |
| |
| namespace service_manager { |
| class Service; |
| } |
| |
| // Lives on the utility process main thread. |
| class MashServiceFactory { |
| public: |
| MashServiceFactory(); |
| ~MashServiceFactory(); |
| |
| // Handles an incoming service request for this utility process. Returns |
| // null if the named service is unknown or cannot be created. |
| std::unique_ptr<service_manager::Service> HandleServiceRequest( |
| const std::string& service_name, |
| service_manager::mojom::ServiceRequest request); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MashServiceFactory); |
| }; |
| |
| #endif // CHROME_UTILITY_MASH_SERVICE_FACTORY_H_ |