blob: 4997310654ec477ddfba9d0247cd2516ea7a8c62 [file] [log] [blame]
// Copyright 2018 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 SRC_UI_LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_
#define SRC_UI_LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_
#include <lib/vfs/cpp/pseudo_dir.h>
#include <memory>
#include "src/ui/lib/escher/fs/hack_filesystem.h"
namespace escher {
// The data source from Fuchsia filesystem.
class FuchsiaDataSource : public HackFilesystem {
public:
FuchsiaDataSource(const std::shared_ptr<vfs::PseudoDir>& root_dir);
FuchsiaDataSource();
// |HackFilesystem|
bool InitializeWithRealFiles(const std::vector<HackFilePath>& paths, const char* root) override;
private:
std::shared_ptr<vfs::PseudoDir> root_dir_;
};
} // namespace escher
#endif // SRC_UI_LIB_ESCHER_FS_FUCHSIA_DATA_SOURCE_H_