| Index: chrome/browser/chromeos/gdata/gdata_cache_metadata.h
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_cache_metadata.h b/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
|
| index 3ca2916479c04639b328aad196c4047ca0d8b15c..025b223c45d153d7e1bffb0417d4572a5ba688e8 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
|
| +++ b/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
|
| @@ -43,14 +43,14 @@ class GDataCacheMetadata {
|
| // Removes entry corresponding to |resource_id| from cache map.
|
| virtual void RemoveFromCache(const std::string& resource_id) = 0;
|
|
|
| - // Returns the cache entry for file corresponding to |resource_id| and |md5|
|
| - // if entry exists in cache map. Otherwise, returns NULL.
|
| + // Gets the cache entry for file corresponding to |resource_id| and |md5|
|
| + // and returns true if entry exists in cache map. Otherwise, returns false.
|
| // |md5| can be empty if only matching |resource_id| is desired, which may
|
| // happen when looking for pinned entries where symlinks' filenames have no
|
| // extension and hence no md5.
|
| - virtual scoped_ptr<GDataCache::CacheEntry> GetCacheEntry(
|
| - const std::string& resource_id,
|
| - const std::string& md5) = 0;
|
| + virtual bool GetCacheEntry(const std::string& resource_id,
|
| + const std::string& md5,
|
| + GDataCache::CacheEntry* entry) = 0;
|
|
|
| // Removes temporary files (files in CACHE_TYPE_TMP) from the cache map.
|
| virtual void RemoveTemporaryFiles() = 0;
|
| @@ -88,9 +88,9 @@ class GDataCacheMetadataMap : public GDataCacheMetadata {
|
| GDataCache::CacheSubDirectoryType subdir,
|
| int cache_state) OVERRIDE;
|
| virtual void RemoveFromCache(const std::string& resource_id) OVERRIDE;
|
| - virtual scoped_ptr<GDataCache::CacheEntry> GetCacheEntry(
|
| - const std::string& resource_id,
|
| - const std::string& md5) OVERRIDE;
|
| + virtual bool GetCacheEntry(const std::string& resource_id,
|
| + const std::string& md5,
|
| + GDataCache::CacheEntry* entry) OVERRIDE;
|
| virtual void RemoveTemporaryFiles() OVERRIDE;
|
| virtual void Iterate(const IterateCallback& callback) OVERRIDE;
|
|
|
|
|