#ifndef NET_BASE_FILENAME_UTIL_INTERNAL_H_
#define NET_BASE_FILENAME_UTIL_INTERNAL_H_
#include <string>
#include "base/files/file_path.h"
class GURL;
namespace net {
ReplaceIllegalCharactersFunction;
void SanitizeGeneratedFileName(base::FilePath::StringType* filename,
bool replace_trailing);
bool IsShellIntegratedExtension(const base::FilePath::StringType& extension);
void EnsureSafeExtension(const std::string& mime_type,
bool ignore_extension,
base::FilePath* file_name);
bool FilePathToString16(const base::FilePath& path, std::u16string* converted);
std::u16string GetSuggestedFilenameImpl(
const GURL& url,
const std::string& content_disposition,
const std::string& referrer_charset,
const std::string& suggested_name,
const std::string& mime_type,
const std::string& default_name,
bool should_replace_extension,
ReplaceIllegalCharactersFunction replace_illegal_characters_function);
base::FilePath GenerateFileNameImpl(
const GURL& url,
const std::string& content_disposition,
const std::string& referrer_charset,
const std::string& suggested_name,
const std::string& mime_type,
const std::string& default_name,
bool should_replace_extension,
ReplaceIllegalCharactersFunction replace_illegal_characters_function);
}
#endif