register DIR_CACHE and DIR_USER_CACHE in path service

This commit is contained in:
Cheng Zhao 2015-01-18 21:00:47 -08:00
parent dc4ccfcbdc
commit 4bbe026d48

View file

@ -13,12 +13,17 @@
#include "base/base_paths_mac.h"
#endif
#if defined(OS_POSIX)
#include "base/base_paths_posix.h"
#endif
namespace brightray {
enum {
PATH_START = 1000,
DIR_USER_DATA = PATH_START, // Directory where user data can be written.
DIR_USER_CACHE, // Directory where user cache can be written.
#if defined(OS_LINUX)
DIR_APP_DATA, // Application Data directory under the user profile.
@ -26,6 +31,12 @@ enum {
DIR_APP_DATA = base::DIR_APP_DATA,
#endif
#if defined(OS_POSIX)
DIR_CACHE = base::DIR_CACHE, // Directory where to put cache data.
#else
DIR_CACHE = base::DIR_APP_DATA,
#endif
PATH_END
};