#ifndef COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
#define COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
#include <string>
#include "base/files/file_path.h"
#include "components/drive/drive_export.h"
#include "components/drive/file_errors.h"
#include "url/gurl.h"
namespace drive {
namespace util {
inline constexpr char kDriveGrandRootLocalId[] = "<drive>";
inline constexpr char kDriveOtherDirLocalId[] = "<other>";
inline constexpr char kDriveTeamDrivesDirLocalId[] = "<team_drives>";
inline constexpr char kDriveComputersDirLocalId[] = "<computers>";
inline constexpr char kDriveTrashDirLocalId[] = "<trash>";
inline constexpr char kDriveGrandRootDirName[] = "drive";
inline constexpr char kDriveMyDriveRootDirName[] = "root";
inline constexpr char kDriveOtherDirName[] = "other";
inline constexpr char kDriveTeamDrivesDirName[] = "team_drives";
inline constexpr char kDriveComputersDirName[] = "Computers";
inline constexpr char kDriveTrashDirName[] = "trash";
inline constexpr char kTeamDriveIdDefaultCorpus[] = "";
COMPONENTS_DRIVE_EXPORT
const base::FilePath& GetDriveGrandRootPath();
COMPONENTS_DRIVE_EXPORT
std::string ConvertChangestampToStartPageToken(int64_t changestamp);
struct COMPONENTS_DRIVE_EXPORT DestroyHelper {
template <typename T>
void operator()(T* object) const {
if (object)
object->Destroy();
}
};
COMPONENTS_DRIVE_EXPORT
GURL ReadUrlFromGDocFile(const base::FilePath& file_path);
COMPONENTS_DRIVE_EXPORT
std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path);
}
}
#endif