2015-01-18 16:59:57 -08: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.
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_ELECTRON_PATHS_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_ELECTRON_PATHS_H_
|
2018-10-24 12:49:10 +02:00
|
|
|
|
|
|
|
#include "base/base_paths.h"
|
2015-01-18 16:59:57 -08:00
|
|
|
|
2015-01-18 17:19:25 -08:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
#include "base/base_paths_win.h"
|
2020-08-12 11:33:58 -07:00
|
|
|
#elif defined(OS_MAC)
|
2015-01-18 17:19:25 -08:00
|
|
|
#include "base/base_paths_mac.h"
|
|
|
|
#endif
|
|
|
|
|
2015-01-18 21:00:47 -08:00
|
|
|
#if defined(OS_POSIX)
|
|
|
|
#include "base/base_paths_posix.h"
|
|
|
|
#endif
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
namespace electron {
|
2015-01-18 16:59:57 -08:00
|
|
|
|
|
|
|
enum {
|
2016-01-11 10:40:20 +08:00
|
|
|
PATH_START = 11000,
|
2015-01-18 16:59:57 -08:00
|
|
|
|
2021-06-14 17:32:56 -07:00
|
|
|
DIR_USER_CACHE = PATH_START, // Directory where user cache can be written.
|
|
|
|
DIR_APP_LOGS, // Directory where app logs live
|
2015-01-18 16:59:57 -08:00
|
|
|
|
2020-05-12 19:27:56 -07:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
DIR_RECENT, // Directory where recent files live
|
|
|
|
#endif
|
|
|
|
|
2015-01-18 17:19:25 -08:00
|
|
|
#if defined(OS_LINUX)
|
|
|
|
DIR_APP_DATA, // Application Data directory under the user profile.
|
2019-05-21 01:35:01 -05:00
|
|
|
#endif
|
|
|
|
|
2020-05-07 13:31:26 -07:00
|
|
|
DIR_CRASH_DUMPS, // c.f. chrome::DIR_CRASH_DUMPS
|
|
|
|
|
2019-05-21 01:35:01 -05:00
|
|
|
PATH_END, // End of new paths. Those that follow redirect to base::DIR_*
|
|
|
|
|
2021-11-24 09:45:59 +01:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
DIR_APP_DATA = base::DIR_ROAMING_APP_DATA,
|
|
|
|
#elif defined(OS_MAC)
|
2015-01-18 17:19:25 -08:00
|
|
|
DIR_APP_DATA = base::DIR_APP_DATA,
|
|
|
|
#endif
|
2015-01-18 16:59:57 -08:00
|
|
|
};
|
|
|
|
|
2019-05-21 01:35:01 -05:00
|
|
|
static_assert(PATH_START < PATH_END, "invalid PATH boundaries");
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
} // namespace electron
|
2015-01-18 16:59:57 -08:00
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_ELECTRON_PATHS_H_
|