#ifndef EXTENSIONS_COMMON_API_FILE_SYSTEM_H__
#define EXTENSIONS_COMMON_API_FILE_SYSTEM_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
namespace extensions {
namespace api {
namespace file_system {
struct AcceptOption { … };
enum class ChooseEntryType { … };
const char* ToString(ChooseEntryType as_enum);
ChooseEntryType ParseChooseEntryType(std::string_view as_string);
std::u16string GetChooseEntryTypeParseError(std::string_view as_string);
struct ChooseEntryOptions { … };
struct RequestFileSystemOptions { … };
struct Volume { … };
struct VolumeListChangedEvent { … };
namespace GetDisplayPath {
struct Params { … };
namespace Results {
base::Value::List Create(const std::string& display_path);
}
}
namespace GetWritableEntry {
struct Params { … };
namespace Results {
struct Entry { … };
base::Value::List Create(const Entry& entry);
}
}
namespace IsWritableEntry {
struct Params { … };
namespace Results {
base::Value::List Create(bool is_writable);
}
}
namespace ChooseEntry {
struct Params { … };
namespace Results {
struct Entry { … };
struct FileEntriesType { … };
base::Value::List Create(const Entry& entry, const std::vector<FileEntriesType>& file_entries);
}
}
namespace RestoreEntry {
struct Params { … };
namespace Results {
struct Entry { … };
base::Value::List Create(const Entry& entry);
}
}
namespace IsRestorable {
struct Params { … };
namespace Results {
base::Value::List Create(bool is_restorable);
}
}
namespace RetainEntry {
struct Params { … };
}
namespace RequestFileSystem {
struct Params { … };
namespace Results {
struct FileSystem { … };
base::Value::List Create(const FileSystem& file_system);
}
}
namespace GetVolumeList {
namespace Results {
base::Value::List Create(const std::vector<Volume>& volumes);
}
}
namespace OnVolumeListChanged {
extern const char kEventName[];
base::Value::List Create(const VolumeListChangedEvent& event);
}
}
}
}
#endif