Add Archive::GetFD

This commit is contained in:
Cheng Zhao 2015-05-11 11:02:17 +08:00
parent f8e1dfbbc6
commit d8d7e5b9bb
5 changed files with 34 additions and 5 deletions

View file

@ -60,6 +60,9 @@ class Archive {
// For unpacked file, this method will return its real path.
bool CopyFileOut(const base::FilePath& path, base::FilePath* out);
// Returns the file's fd.
int GetFD() const;
base::FilePath path() const { return path_; }
base::DictionaryValue* header() const { return header_.get(); }