| // Copyright 2016 The Fuchsia 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 GARNET_BIN_APPMGR_ROOT_APPLICATION_LOADER_H_ |
| #define GARNET_BIN_APPMGR_ROOT_APPLICATION_LOADER_H_ |
| |
| #include <functional> |
| #include <string> |
| #include <tuple> |
| #include <vector> |
| |
| #include <zx/vmo.h> |
| |
| #include "lib/app/fidl/application_loader.fidl.h" |
| #include "lib/fxl/macros.h" |
| |
| namespace app { |
| |
| class RootApplicationLoader : public ApplicationLoader { |
| public: |
| explicit RootApplicationLoader(std::vector<std::string> path); |
| ~RootApplicationLoader() override; |
| |
| void LoadApplication( |
| const fidl::String& url, |
| const ApplicationLoader::LoadApplicationCallback& callback) override; |
| |
| private: |
| std::vector<std::string> path_; |
| |
| FXL_DISALLOW_COPY_AND_ASSIGN(RootApplicationLoader); |
| }; |
| |
| } // namespace app |
| |
| #endif // GARNET_BIN_APPMGR_ROOT_APPLICATION_LOADER_H_ |