blob: 90ff15bc837d2a3780e3b66b6d90841e11585bf8 [file] [log] [blame] [edit]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GARNET_BIN_APPMGR_URL_RESOLVER_H_
#define GARNET_BIN_APPMGR_URL_RESOLVER_H_
#include <string>
namespace fuchsia {
namespace sys {
// Canonicalizes a URL, if possible. Otherwise, returns an empty string/
std::string CanonicalizeURL(const std::string& url);
// Resolves a URL into a path, if possible. Otherwise, returns an empty string.
std::string GetPathFromURL(const std::string& url);
// Returns a file:// URL for the given path.
std::string GetURLFromPath(const std::string& path);
} // namespace sys
} // namespace fuchsia
#endif // GARNET_BIN_APPMGR_URL_RESOLVER_H_
OSZAR »