mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
register DIR_CACHE and DIR_USER_CACHE in path service
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user