summaryrefslogtreecommitdiffstats
path: root/extensions/browser/entry_info.h
diff options
context:
space:
mode:
authorcmihail <cmihail@chromium.org>2016-02-24 18:15:21 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-25 02:16:28 +0000
commit20232c23c12a81d98b69d10c9e18c0b4292606cb (patch)
tree669678e9e8b9e74461c8d963710f64018f04b277 /extensions/browser/entry_info.h
parent3d3507bd86994743e974e04ecfc97db4f640a007 (diff)
downloadchromium_src-20232c23c12a81d98b69d10c9e18c0b4292606cb.zip
chromium_src-20232c23c12a81d98b69d10c9e18c0b4292606cb.tar.gz
chromium_src-20232c23c12a81d98b69d10c9e18c0b4292606cb.tar.bz2
Add directories handling support for apps/extensions.
The change introduces a "include_directories" entry in the manifest file for file_handlers. In case the value is true, the file handler becomes a generic handler and adds the given extension to the right click menu. BUG=415897 R=mtomasz@chromium.org Review URL: https://codereview.chromium.org/1407473003 Cr-Commit-Position: refs/heads/master@{#377467}
Diffstat (limited to 'extensions/browser/entry_info.h')
-rw-r--r--extensions/browser/entry_info.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/extensions/browser/entry_info.h b/extensions/browser/entry_info.h
new file mode 100644
index 0000000..eb5f5d5
--- /dev/null
+++ b/extensions/browser/entry_info.h
@@ -0,0 +1,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_