#ifndef COMPONENTS_DRIVE_DRIVE_API_UTIL_H_
#define COMPONENTS_DRIVE_DRIVE_API_UTIL_H_
#include <string>
#include "components/drive/drive_export.h"
namespace base {
class FilePath;
}
namespace drive {
namespace util {
inline constexpr char kGoogleDocumentMimeType[] =
"application/vnd.google-apps.document";
inline constexpr char kGoogleDrawingMimeType[] =
"application/vnd.google-apps.drawing";
inline constexpr char kGooglePresentationMimeType[] =
"application/vnd.google-apps.presentation";
inline constexpr char kGoogleSpreadsheetMimeType[] =
"application/vnd.google-apps.spreadsheet";
inline constexpr char kGoogleTableMimeType[] =
"application/vnd.google-apps.table";
inline constexpr char kGoogleFormMimeType[] =
"application/vnd.google-apps.form";
inline constexpr char kGoogleMapMimeType[] = "application/vnd.google-apps.map";
inline constexpr char kGoogleSiteMimeType[] =
"application/vnd.google-apps.site";
inline constexpr char kDriveFolderMimeType[] =
"application/vnd.google-apps.folder";
inline constexpr char kEncryptedMimeType[] =
"application/vnd.google-gsuite.encrypted";
inline constexpr char kEmailLayoutsMimeType[] =
"application/vnd.google-apps.mail-layout";
COMPONENTS_DRIVE_EXPORT
std::string EscapeQueryStringValue(const std::string& str);
COMPONENTS_DRIVE_EXPORT
std::string TranslateQuery(const std::string& original_query);
COMPONENTS_DRIVE_EXPORT
std::string CanonicalizeResourceId(const std::string& resource_id);
COMPONENTS_DRIVE_EXPORT
std::string GetMd5Digest(const base::FilePath& file_path);
COMPONENTS_DRIVE_EXPORT
bool IsKnownHostedDocumentMimeType(const std::string& mime_type);
COMPONENTS_DRIVE_EXPORT
bool HasHostedDocumentExtension(const base::FilePath& path);
COMPONENTS_DRIVE_EXPORT
bool IsEncryptedMimeType(const std::string& mime_type);
}
}
#endif