#ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ATTRIBUTE_CACHE_H_
#define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ATTRIBUTE_CACHE_H_
#include <map>
#include "base/files/file.h"
#include "base/values.h"
namespace local_discovery {
class PrivetFileSystemAttributeCache {
public:
PrivetFileSystemAttributeCache();
~PrivetFileSystemAttributeCache();
const base::File::Info* GetFileInfo(const base::FilePath& full_path);
void AddFileInfoFromJSON(const base::FilePath& full_path,
const base::DictionaryValue* json);
private:
typedef std::map<base::FilePath, base::File::Info> FileInfoMap;
void AddEntryInfoFromJSON(const base::FilePath& full_path,
const base::DictionaryValue* json);
FileInfoMap file_info_map_;
};
}
#endif