From 405a64b63ae9a6869923aa5b80cc77acf66e71bf Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 16 Sep 2009 21:03:44 +0000 Subject: Set OS X cache directory to ~/Library/Caches/[app name]/[profile name] - Added implementation of GetUserCacheDirectory() for OS X. - Added FilePath::GetRelativePath(). - Implemented per-profile cache directories for OS X. Patch by Fred Akalin Code review URL: http://codereview.chromium.org/174053 Review URL: http://codereview.chromium.org/204043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26387 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_path.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'base/file_path.h') diff --git a/base/file_path.h b/base/file_path.h index e1dbd22..672d589 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -157,6 +157,16 @@ class FilePath { // parent. bool IsParent(const FilePath& child) const; + // If IsParent(child) holds, appends to path (if non-NULL) the + // relative path to child and returns true. For example, if parent + // holds "/Users/johndoe/Library/Application Support", child holds + // "/Users/johndoe/Library/Application Support/Google/Chrome/Default", and + // *path holds "/Users/johndoe/Library/Caches", then after + // parent.AppendRelativePath(child, path) is called *path will hold + // "/Users/johndoe/Library/Caches/Google/Chrome/Default". Otherwise, + // returns false. + bool AppendRelativePath(const FilePath& child, FilePath* path) const; + // Returns a FilePath corresponding to the directory containing the path // named by this object, stripping away the file component. If this object // only contains one component, returns a FilePath identifying -- cgit v1.1