Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1961)

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 9808023: Grant file access permissions for cached file paths to file browsers/handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index d65f92e5d38fb57900f1fca165b8ba26cf5b809a..53ae11ffd1e462e6a6f186bf7c35dc01431b05a4 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -318,6 +318,11 @@ class GDataFileSystemInterface {
// Returns the pinned sub-directory under gdata cache directory, i.e.
// <user_profile_dir>/GCache/v1/pinned
virtual FilePath GetGDataCachePinnedDirectory() const = 0;
+ // Returns absolute path of the file if it were cached or to be cached.
+ virtual FilePath GetCacheFilePath(const std::string& resource_id,
+ const std::string& md5,
+ CacheSubdir subdir_id,
+ CachedFileOrigin file_orign) const = 0;
satorux1 2012/03/22 22:28:29 You should probably update mock_gdata_file_system.
tonibarzic 2012/03/22 23:38:20 Yeah, I usually remember this when try job fails :
// Fetches the user's Account Metadata to find out current quota information
// and returns it to the callback.
@@ -372,6 +377,10 @@ class GDataFileSystem : public GDataFileSystemInterface,
GDataFileProperties* properties) OVERRIDE;
virtual FilePath GetGDataCacheTmpDirectory() const OVERRIDE;
virtual FilePath GetGDataCachePinnedDirectory() const OVERRIDE;
+ virtual FilePath GetCacheFilePath(const std::string& resource_id,
+ const std::string& md5,
+ CacheSubdir subdir_id,
+ CachedFileOrigin file_orign) const OVERRIDE;
virtual void GetAvailableSpace(
const GetAvailableSpaceCallback& callback) OVERRIDE;
@@ -705,12 +714,6 @@ class GDataFileSystem : public GDataFileSystemInterface,
// - uploads dirty files to gdata server.
// - etc.
- // Returns absolute path of the file if it were cached or to be cached.
- FilePath GetCacheFilePath(const std::string& resource_id,
- const std::string& md5,
- CacheSubdir subdir_id,
- CachedFileOrigin file_orign);
-
// Stores |source_path| corresponding to |resource_id| and |md5| to cache.
// Initializes cache if it has not been initialized.
// Upon completion, |callback| is invoked on the thread where this method was

Powered by Google App Engine
This is Rietveld 408576698