summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/file_system_util.h
diff options
context:
space:
mode:
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 08:04:02 +0000
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 08:04:02 +0000
commit91c2dbf73af418f21af98d40862dc5656fc64250 (patch)
tree6a95533544a0f74d66a9d16f791b77abbc46b1e4 /chrome/browser/chromeos/drive/file_system_util.h
parent30ddb5be443f4529d1f933bfda6e4c1a4341675f (diff)
downloadchromium_src-91c2dbf73af418f21af98d40862dc5656fc64250.zip
chromium_src-91c2dbf73af418f21af98d40862dc5656fc64250.tar.gz
chromium_src-91c2dbf73af418f21af98d40862dc5656fc64250.tar.bz2
Move FileCache::GetCacheRootPath to file_system_util.
This static method is accessed from outside of Drive. In order to avoid touching FileCache by non-drive files, move it to file_system_util with adding simple unittest. BUG=232450 TEST=Ran unit_tests Review URL: https://chromiumcodereview.appspot.com/14752004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/file_system_util.h')
-rw-r--r--chrome/browser/chromeos/drive/file_system_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/drive/file_system_util.h b/chrome/browser/chromeos/drive/file_system_util.h
index d2a3f85..b45820b 100644
--- a/chrome/browser/chromeos/drive/file_system_util.h
+++ b/chrome/browser/chromeos/drive/file_system_util.h
@@ -148,6 +148,10 @@ std::string EscapeUtf8FileName(const std::string& input);
// Extracts resource_id out of edit url.
std::string ExtractResourceIdFromUrl(const GURL& url);
+// Gets the cache root path (i.e. <user_profile_dir>/GCache/v1) from the
+// profile.
+base::FilePath GetCacheRootPath(Profile* profile);
+
// Extracts resource_id, md5, and extra_extension from cache path.
// Case 1: Pinned and outgoing symlinks only have resource_id.
// Example: path="/user/GCache/v1/pinned/pdf:a1b2" =>