diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
commit | 640517fdd23e08ed95cf129d27457db817ee6124 (patch) | |
tree | 2674bc857b9d1b566e05bcfa1dd5c8cfd1897dbf /base/path_service.h | |
parent | f92ed219c9aeeed79993d1d32f34e5d5c9888dbe (diff) | |
download | chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.zip chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.gz chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.bz2 |
Begin the first small step towards using FilePath everywhere:
- Add some transition APIs.
- Start migrating some code to transition APIs.
Review URL: http://codereview.chromium.org/8825
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.h')
-rw-r--r-- | base/path_service.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/base/path_service.h b/base/path_service.h index e449efa..c00e31c 100644 --- a/base/path_service.h +++ b/base/path_service.h @@ -19,6 +19,8 @@ #include "base/base_paths.h" +class FilePath; + // The path service is a global table mapping keys to file system paths. It is // OK to use this service from multiple threads. // @@ -31,6 +33,9 @@ class PathService { // // Returns true if the directory or file was successfully retrieved. On // failure, 'path' will not be changed. + static bool Get(int key, FilePath* path); + // This version, producing a wstring, is deprecated and only kept around + // until we can fix all callers. static bool Get(int key, std::wstring* path); // Overrides the path to a special directory or file. This cannot be used to @@ -66,8 +71,8 @@ class PathService { int key_start, int key_end); private: - static bool GetFromCache(int key, std::wstring* path); - static void AddToCache(int key, const std::wstring& path); + static bool GetFromCache(int key, FilePath* path); + static void AddToCache(int key, const FilePath& path); }; |