| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_NIX_XDG_UTIL_H_ | 5 #ifndef BASE_NIX_XDG_UTIL_H_ |
| 6 #define BASE_NIX_XDG_UTIL_H_ | 6 #define BASE_NIX_XDG_UTIL_H_ |
| 7 | 7 |
| 8 // XDG refers to http://en.wikipedia.org/wiki/Freedesktop.org . | 8 // XDG refers to http://en.wikipedia.org/wiki/Freedesktop.org . |
| 9 // This file contains utilities found across free desktop environments. | 9 // This file contains utilities found across free desktop environments. |
| 10 // | 10 // |
| 11 // TODO(brettw) this file should be in app/x11, but is currently used by | 11 // TODO(brettw) this file should be in app/x11, but is currently used by |
| 12 // net. We should have a net API to allow the embedder to specify the behavior | 12 // net. We should have a net API to allow the embedder to specify the behavior |
| 13 // that it uses XDG for, and then move this file. | 13 // that it uses XDG for, and then move this file. |
| 14 | 14 |
| 15 #include "base/base_export.h" | 15 #include "base/base_export.h" |
| 16 | 16 |
| 17 #ifdef nix | 17 #ifdef nix |
| 18 #error asdf | 18 #error asdf |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 class FilePath; | |
| 22 | |
| 23 namespace base { | 21 namespace base { |
| 24 | 22 |
| 25 class Environment; | 23 class Environment; |
| 24 class FilePath; |
| 26 | 25 |
| 27 namespace nix { | 26 namespace nix { |
| 28 | 27 |
| 29 // The default XDG config directory name. | 28 // The default XDG config directory name. |
| 30 BASE_EXPORT extern const char kDotConfigDir[]; | 29 BASE_EXPORT extern const char kDotConfigDir[]; |
| 31 | 30 |
| 32 // The XDG config directory environment variable. | 31 // The XDG config directory environment variable. |
| 33 BASE_EXPORT extern const char kXdgConfigHomeEnvVar[]; | 32 BASE_EXPORT extern const char kXdgConfigHomeEnvVar[]; |
| 34 | 33 |
| 35 // Utility function for getting XDG directories. | 34 // Utility function for getting XDG directories. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 66 // Return a string representation of the given desktop environment. | 65 // Return a string representation of the given desktop environment. |
| 67 // May return NULL in the case of DESKTOP_ENVIRONMENT_OTHER. | 66 // May return NULL in the case of DESKTOP_ENVIRONMENT_OTHER. |
| 68 BASE_EXPORT const char* GetDesktopEnvironmentName(DesktopEnvironment env); | 67 BASE_EXPORT const char* GetDesktopEnvironmentName(DesktopEnvironment env); |
| 69 // Convenience wrapper that calls GetDesktopEnvironment() first. | 68 // Convenience wrapper that calls GetDesktopEnvironment() first. |
| 70 BASE_EXPORT const char* GetDesktopEnvironmentName(Environment* env); | 69 BASE_EXPORT const char* GetDesktopEnvironmentName(Environment* env); |
| 71 | 70 |
| 72 } // namespace nix | 71 } // namespace nix |
| 73 } // namespace base | 72 } // namespace base |
| 74 | 73 |
| 75 #endif // BASE_NIX_XDG_UTIL_H_ | 74 #endif // BASE_NIX_XDG_UTIL_H_ |
| OLD | NEW |