#include "chrome/common/chrome_paths.h"
#include <memory>
#include "base/base_paths.h"
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/nix/xdg_util.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_paths_internal.h"
namespace chrome {
GetXDGDirectory;
GetXDGUserDirectory;
kDotConfigDir;
kXdgConfigHomeEnvVar;
namespace {
const char kDownloadsDir[] = …;
const char kMusicDir[] = …;
const char kPicturesDir[] = …;
const char kVideosDir[] = …;
bool GetUserMediaDirectory(const std::string& xdg_name,
const std::string& fallback_name,
base::FilePath* result) { … }
}
bool GetDefaultUserDataDirectory(base::FilePath* result) { … }
void GetUserCacheDirectory(const base::FilePath& profile_dir,
base::FilePath* result) { … }
bool GetUserDocumentsDirectory(base::FilePath* result) { … }
bool GetUserDownloadsDirectorySafe(base::FilePath* result) { … }
bool GetUserDownloadsDirectory(base::FilePath* result) { … }
bool GetUserMusicDirectory(base::FilePath* result) { … }
bool GetUserPicturesDirectory(base::FilePath* result) { … }
bool GetUserVideosDirectory(base::FilePath* result) { … }
bool ProcessNeedsProfileDir(const std::string& process_type) { … }
}