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

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: another rebase 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 fa86bcec221efffe4bbc3993fd014c2ddff32e48..c4214cfbdc8f8a15e9cea811d12adaff9f84a1ab 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -317,6 +317,17 @@ class GDataFileSystemInterface {
// <user_profile_dir>/GCache/v1/pinned
virtual FilePath GetGDataCachePinnedDirectory() const = 0;
+ // Returns the pinned sub-directory under gdata cache directory, i.e.
+ // <user_profile_dir>/GCache/v1/pinned
+ virtual FilePath GetGDataCachePersistentDirectory() 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,
+ GDataRootDirectory::CacheSubDirectoryType sub_dir_type,
+ CachedFileOrigin file_orign) const = 0;
+
// Fetches the user's Account Metadata to find out current quota information
// and returns it to the callback.
virtual void GetAvailableSpace(const GetAvailableSpaceCallback& callback) = 0;
@@ -380,6 +391,12 @@ class GDataFileSystem : public GDataFileSystemInterface {
virtual FilePath GetGDataCacheTmpDirectory() const OVERRIDE;
virtual FilePath GetGDataTempDownloadFolderPath() const OVERRIDE;
virtual FilePath GetGDataCachePinnedDirectory() const OVERRIDE;
+ virtual FilePath GetGDataCachePersistentDirectory() const OVERRIDE;
+ virtual FilePath GetCacheFilePath(
+ const std::string& resource_id,
+ const std::string& md5,
+ GDataRootDirectory::CacheSubDirectoryType sub_dir_type,
+ CachedFileOrigin file_orign) const OVERRIDE;
virtual void GetAvailableSpace(
const GetAvailableSpaceCallback& callback) OVERRIDE;
virtual void AddDownloadedFile(const FilePath& virtual_dir_path,
@@ -749,13 +766,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,
- GDataRootDirectory::CacheSubDirectoryType sub_dir_type,
- CachedFileOrigin file_orign);
-
// Checks if file corresponding to |resource_id| and |md5| exists in cache.
// Initializes cache if it has not been initialized.
// Upon completion, |callback| is invoked on the thread where this method was
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698