| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_ | |
| 6 #define MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_ | |
| 7 | |
| 8 #include "mojo/shell/loader.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class BlockingPool; | |
| 12 } | |
| 13 | |
| 14 namespace mojo { | |
| 15 class ShellClient; | |
| 16 class ShellConnection; | |
| 17 } | |
| 18 | |
| 19 namespace package_manager { | |
| 20 | |
| 21 class ApplicationCatalogStore; | |
| 22 | |
| 23 class Loader : public mojo::shell::Loader { | |
| 24 public: | |
| 25 Loader(base::TaskRunner* blocking_pool, | |
| 26 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog); | |
| 27 ~Loader() override; | |
| 28 | |
| 29 // mojo::shell::Loader: | |
| 30 void Load(const std::string& name, | |
| 31 mojo::shell::mojom::ShellClientRequest request) override; | |
| 32 | |
| 33 private: | |
| 34 base::TaskRunner* blocking_pool_; | |
| 35 scoped_ptr<package_manager::ApplicationCatalogStore> app_catalog_; | |
| 36 scoped_ptr<mojo::ShellClient> client_; | |
| 37 scoped_ptr<mojo::ShellConnection> connection_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(Loader); | |
| 40 }; | |
| 41 | |
| 42 } // namespace package_manager | |
| 43 | |
| 44 #endif // MOJO_SERVICES_PACKAGE_MANAGER_LOADER_H_ | |
| OLD | NEW |