Make Archive thread safe

This commit is contained in:
Cheng Zhao 2017-03-10 17:33:27 +09:00
parent c068285ff8
commit e496e18f6e
6 changed files with 22 additions and 5 deletions

View file

@ -19,6 +19,9 @@ class Archive;
// Gets or creates a new Archive from the path.
std::shared_ptr<Archive> GetOrCreateAsarArchive(const base::FilePath& path);
// Destroy cached Archive objects.
void ClearArchives();
// Separates the path to Archive out.
bool GetAsarArchivePath(const base::FilePath& full_path,
base::FilePath* asar_path,