register DIR_CACHE and DIR_USER_CACHE in path service
This commit is contained in:
parent
dc4ccfcbdc
commit
4bbe026d48
1 changed files with 11 additions and 0 deletions
|
@ -13,12 +13,17 @@
|
||||||
#include "base/base_paths_mac.h"
|
#include "base/base_paths_mac.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OS_POSIX)
|
||||||
|
#include "base/base_paths_posix.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace brightray {
|
namespace brightray {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PATH_START = 1000,
|
PATH_START = 1000,
|
||||||
|
|
||||||
DIR_USER_DATA = PATH_START, // Directory where user data can be written.
|
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)
|
#if defined(OS_LINUX)
|
||||||
DIR_APP_DATA, // Application Data directory under the user profile.
|
DIR_APP_DATA, // Application Data directory under the user profile.
|
||||||
|
@ -26,6 +31,12 @@ enum {
|
||||||
DIR_APP_DATA = base::DIR_APP_DATA,
|
DIR_APP_DATA = base::DIR_APP_DATA,
|
||||||
#endif
|
#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
|
PATH_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue