Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / chromecast / base / path_utils.h
blob5c1e205c2c38aef4f8cc3de36a1173f4aeeb969f
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.
5 #ifndef CHROMECAST_BASE_PATH_UTILS_H_
6 #define CHROMECAST_BASE_PATH_UTILS_H_
8 #include <string>
10 #include "base/files/file_path.h"
12 namespace chromecast {
14 // If |path| is relative, returns the path created by prepending HOME directory
15 // to |path| (e.g. {HOME}/|path|). If |path| is absolute, returns |path|.
16 base::FilePath GetHomePath(const base::FilePath& path);
17 base::FilePath GetHomePathASCII(const std::string& path);
19 // If |path| is relative, returns the path created by prepending BIN directory
20 // to |path| (e.g. {BIN}/|path|). If |path| is absolute, returns |path|.
21 base::FilePath GetBinPath(const base::FilePath& path);
22 base::FilePath GetBinPathASCII(const std::string& path);
24 // If |path| is relative, returns the path created by prepending TMP directory
25 // to |path| (e.g. {TMP}/|path|). If |path| is absolute, returns |path|.
26 base::FilePath GetTmpPath(const base::FilePath& path);
27 base::FilePath GetTmpPathASCII(const std::string& path);
29 } // namespace chromecast
31 #endif // CHROMECAST_BASE_PATH_UTILS_H_