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

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

Issue 10198003: gdata: Get rid of GetGDataCacheTmpDirectory() and friends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 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 db8027f4adebf97afcb92012c44855b4a07046b1..6e618940f633a1deb8b51892f1d57944a6a417bf 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -367,25 +367,10 @@ class GDataFileSystemInterface {
// <user_profile_dir>/GCache/v1
virtual bool IsUnderGDataCacheDirectory(const FilePath& path) const = 0;
- // Returns the tmp sub-directory under gdata cache directory, i.e.
- // <user_profile_dir>/GCache/v1/tmp
- virtual FilePath GetGDataCacheTmpDirectory() const = 0;
-
- // Returns the tmp downloads sub-directory under gdata cache directory, i.e.
- // <user_profile_dir>/GCache/v1/tmp/downloads/
- virtual FilePath GetGDataTempDownloadFolderPath() const = 0;
-
- // Returns the tmp documents sub-directory under gdata cache directory, i.e.
- // <user_profile_dir>/GCache/v1/tmp/documents/
- virtual FilePath GetGDataTempDocumentFolderPath() const = 0;
-
- // Returns the pinned sub-directory under gdata cache directory, i.e.
- // <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 the sub-directory under gdata cache directory for the given sub
+ // directory type. Example: <user_profile_dir>/GCache/v1/tmp
+ virtual FilePath GetCacheDirectoryPath(
+ GDataRootDirectory::CacheSubDirectoryType sub_dir_type) const = 0;
// Returns absolute path of the file if it were cached or to be cached.
virtual FilePath GetCacheFilePath(
@@ -472,11 +457,8 @@ class GDataFileSystem : public GDataFileSystemInterface,
virtual bool GetFileInfoByPath(const FilePath& gdata_file_path,
GDataFileProperties* properties) OVERRIDE;
virtual bool IsUnderGDataCacheDirectory(const FilePath& path) const OVERRIDE;
- virtual FilePath GetGDataCacheTmpDirectory() const OVERRIDE;
- virtual FilePath GetGDataTempDownloadFolderPath() const OVERRIDE;
- virtual FilePath GetGDataTempDocumentFolderPath() const OVERRIDE;
- virtual FilePath GetGDataCachePinnedDirectory() const OVERRIDE;
- virtual FilePath GetGDataCachePersistentDirectory() const OVERRIDE;
+ virtual FilePath GetCacheDirectoryPath(
+ GDataRootDirectory::CacheSubDirectoryType sub_dir_type) const OVERRIDE;
virtual FilePath GetCacheFilePath(
const std::string& resource_id,
const std::string& md5,
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.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