| 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 MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ | 5 #ifndef MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ |
| 6 #define MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ | 6 #define MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/binding_set.h" | 10 #include "mojo/public/cpp/bindings/binding_set.h" |
| 11 #include "services/shell/public/cpp/interface_factory.h" | 11 #include "services/service_manager/public/cpp/interface_factory.h" |
| 12 #include "services/shell/public/cpp/service.h" | 12 #include "services/service_manager/public/cpp/service.h" |
| 13 #include "services/shell/public/interfaces/service_factory.mojom.h" | 13 #include "services/service_manager/public/interfaces/service_factory.mojom.h" |
| 14 | 14 |
| 15 namespace mash { | 15 namespace mash { |
| 16 | 16 |
| 17 // MashPackagedService is a Service implementation that starts all the mash | 17 // MashPackagedService is a Service implementation that starts all the mash |
| 18 // apps. It's used when mash is packaged inside chrome or tests. To use you'll | 18 // apps. It's used when mash is packaged inside chrome or tests. To use you'll |
| 19 // need a manifest similar to what is used by chrome and browser_tests. | 19 // need a manifest similar to what is used by chrome and browser_tests. |
| 20 // Things to do when adding a new service/app: | 20 // Things to do when adding a new service/app: |
| 21 // - Add a manifest to the new service. | 21 // - Add a manifest to the new service. |
| 22 // - Update manifests of services that are going to use this new service. e.g. | 22 // - Update manifests of services that are going to use this new service. e.g. |
| 23 // chrome_manifest. | 23 // chrome_manifest. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 mojo::BindingSet<ServiceFactory> service_factory_bindings_; | 54 mojo::BindingSet<ServiceFactory> service_factory_bindings_; |
| 55 std::unique_ptr<shell::Service> service_; | 55 std::unique_ptr<shell::Service> service_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(MashPackagedService); | 57 DISALLOW_COPY_AND_ASSIGN(MashPackagedService); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace mash | 60 } // namespace mash |
| 61 | 61 |
| 62 #endif // MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ | 62 #endif // MASH_PACKAGE_MASH_PACKAGED_SERVICE_H_ |
| OLD | NEW |