123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef BASE_PATH_SERVICE_H_
- #define BASE_PATH_SERVICE_H_
- #include <string>
- #include "base/base_export.h"
- #include "base/base_paths.h"
- #include "base/gtest_prod_util.h"
- #include "build/build_config.h"
- namespace base {
- class FilePath;
- class ScopedPathOverride;
- class BASE_EXPORT PathService {
- public:
-
-
-
- static bool Get(int key, FilePath* path);
-
- static FilePath CheckedGet(int key);
-
-
-
-
-
-
-
-
-
-
-
-
-
- static bool Override(int key, const FilePath& path);
-
-
-
-
-
-
-
-
-
- static bool OverrideAndCreateIfNeeded(int key,
- const FilePath& path,
- bool is_absolute,
- bool create);
-
-
-
-
-
-
-
-
- typedef bool (*ProviderFunc)(int, FilePath*);
-
-
- static void RegisterProvider(ProviderFunc provider,
- int key_start,
- int key_end);
-
- static void DisableCache();
- private:
- friend class ScopedPathOverride;
- FRIEND_TEST_ALL_PREFIXES(PathServiceTest, RemoveOverride);
-
-
-
- static bool RemoveOverride(int key);
- };
- }
- #endif
|