brightray_paths.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BRIGHTRAY_BROWSER_BRIGHTRAY_PATHS_H_
  5. #define BRIGHTRAY_BROWSER_BRIGHTRAY_PATHS_H_
  6. #if defined(OS_WIN)
  7. #include "base/base_paths_win.h"
  8. #elif defined(OS_MACOSX)
  9. #include "base/base_paths_mac.h"
  10. #endif
  11. #if defined(OS_POSIX)
  12. #include "base/base_paths_posix.h"
  13. #endif
  14. namespace brightray {
  15. enum {
  16. PATH_START = 11000,
  17. DIR_USER_DATA = PATH_START, // Directory where user data can be written.
  18. DIR_USER_CACHE, // Directory where user cache can be written.
  19. DIR_APP_LOGS, // Directory where app logs live
  20. #if defined(OS_LINUX)
  21. DIR_APP_DATA, // Application Data directory under the user profile.
  22. #else
  23. DIR_APP_DATA = base::DIR_APP_DATA,
  24. #endif
  25. #if defined(OS_POSIX)
  26. DIR_CACHE = base::DIR_CACHE, // Directory where to put cache data.
  27. #else
  28. DIR_CACHE = base::DIR_APP_DATA,
  29. #endif
  30. PATH_END
  31. };
  32. } // namespace brightray
  33. #endif // BRIGHTRAY_BROWSER_BRIGHTRAY_PATHS_H_