blob: eb5f5d59ca5bc276716673fb3c0a8a54bacc4f7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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_
|