blob: eb5f5d59ca5bc276716673fb3c0a8a54bacc4f7e [file] [log] [blame]
// Copyright 2016 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.
#ifndef EXTENSIONS_BROWSER_ENTRY_INFO_H_
#define EXTENSIONS_BROWSER_ENTRY_INFO_H_
#include <string>
#include "base/files/file_path.h"
namespace extensions {
// Contains information about files and directories.
struct EntryInfo {
EntryInfo(const base::FilePath& path,
const std::string& mime_type,
bool is_directory)
: path(path), mime_type(mime_type), is_directory(is_directory) {}
base::FilePath path;
std::string mime_type; // Useful only if is_directory = false.
bool is_directory;
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_ENTRY_INFO_H_