blob: 83e7d8f567f9c3d7a3b122da3e843d6c2908c758 [file] [log] [blame]
// 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_LOADER_H_
#define GARNET_BIN_APPMGR_ROOT_LOADER_H_
#include <fuchsia/sys/cpp/fidl.h>
#include <lib/zx/vmo.h>
#include "lib/fidl/cpp/binding_set.h"
#include "lib/fxl/macros.h"
namespace component {
class RootLoader : public fuchsia::sys::Loader {
public:
explicit RootLoader();
~RootLoader() override;
void LoadComponent(fidl::StringPtr url,
LoadComponentCallback callback) override;
void AddBinding(fidl::InterfaceRequest<fuchsia::sys::Loader> request);
private:
fidl::BindingSet<fuchsia::sys::Loader> bindings_;
FXL_DISALLOW_COPY_AND_ASSIGN(RootLoader);
};
} // namespace component
#endif // GARNET_BIN_APPMGR_ROOT_LOADER_H_