blob: d28880e15f392c5bce14aba0a5024d504e5100b1 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <set>
#include "base/files/file_path.h"
// Normalize extension resource relative path. Removes ".". Returns false if
// path can not be normalized, i.e. it references its parent or empty after
// normalization.
bool NormalizeExtensionResourcePath(const base::FilePath& path,
base::FilePath* result);
// Applies |NormalizeExtensionResourcePath| for each resource path and adds it
// to result in the case of success.
std::set<base::FilePath> NormalizeExtensionResourcePaths(
const std::set<base::FilePath>& paths);