Make NativeImage work with asar archive

This commit is contained in:
Cheng Zhao 2015-02-12 19:34:21 +08:00
parent 98a7f08be2
commit 3678f13dfb
3 changed files with 28 additions and 2 deletions

View file

@ -23,6 +23,9 @@ bool GetAsarArchivePath(const base::FilePath& full_path,
base::FilePath* asar_path,
base::FilePath* relative_path);
// Same with base::ReadFileToString but supports asar Archive.
bool ReadFileToString(const base::FilePath& path, std::string* contents);
} // namespace asar
#endif // ATOM_COMMON_ASAR_ASAR_UTIL_H_