2015-01-19 00:59:57 +00:00
|
|
|
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_ATOM_PATHS_H_
|
|
|
|
#define SHELL_BROWSER_ATOM_PATHS_H_
|
2018-10-24 10:49:10 +00:00
|
|
|
|
|
|
|
#include "base/base_paths.h"
|
2015-01-19 00:59:57 +00:00
|
|
|
|
2015-01-19 01:19:25 +00:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
#include "base/base_paths_win.h"
|
|
|
|
#elif defined(OS_MACOSX)
|
|
|
|
#include "base/base_paths_mac.h"
|
|
|
|
#endif
|
|
|
|
|
2015-01-19 05:00:47 +00:00
|
|
|
#if defined(OS_POSIX)
|
|
|
|
#include "base/base_paths_posix.h"
|
|
|
|
#endif
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-01-19 00:59:57 +00:00
|
|
|
|
|
|
|
enum {
|
2016-01-11 02:40:20 +00:00
|
|
|
PATH_START = 11000,
|
2015-01-19 00:59:57 +00:00
|
|
|
|
|
|
|
DIR_USER_DATA = PATH_START, // Directory where user data can be written.
|
2018-04-18 01:46:27 +00:00
|
|
|
DIR_USER_CACHE, // Directory where user cache can be written.
|
|
|
|
DIR_APP_LOGS, // Directory where app logs live
|
2015-01-19 00:59:57 +00:00
|
|
|
|
2015-01-19 01:19:25 +00:00
|
|
|
#if defined(OS_LINUX)
|
|
|
|
DIR_APP_DATA, // Application Data directory under the user profile.
|
2019-05-21 06:35:01 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
PATH_END, // End of new paths. Those that follow redirect to base::DIR_*
|
|
|
|
|
|
|
|
#if !defined(OS_LINUX)
|
2015-01-19 01:19:25 +00:00
|
|
|
DIR_APP_DATA = base::DIR_APP_DATA,
|
|
|
|
#endif
|
|
|
|
|
2015-01-19 05:00:47 +00:00
|
|
|
#if defined(OS_POSIX)
|
2019-05-21 06:35:01 +00:00
|
|
|
DIR_CACHE = base::DIR_CACHE // Directory where to put cache data.
|
2015-01-19 05:00:47 +00:00
|
|
|
#else
|
2019-05-21 06:35:01 +00:00
|
|
|
DIR_CACHE = base::DIR_APP_DATA
|
2015-01-19 05:00:47 +00:00
|
|
|
#endif
|
2015-01-19 00:59:57 +00:00
|
|
|
};
|
|
|
|
|
2019-05-21 06:35:01 +00:00
|
|
|
static_assert(PATH_START < PATH_END, "invalid PATH boundaries");
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2015-01-19 00:59:57 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_ATOM_PATHS_H_
|