Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / file_handler_info.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_
7
8 #include <set>
9 #include <string>
10 #include <vector>
11
12 namespace extensions {
13
14 struct FileHandlerInfo {
15   FileHandlerInfo();
16   ~FileHandlerInfo();
17
18   std::string id;
19   std::string title;
20
21   // File extensions associated with this handler.
22   std::set<std::string> extensions;
23
24   // MIME types associated with this handler.
25   std::set<std::string> types;
26 };
27
28 struct FileHandlersInfo {
29   FileHandlersInfo();
30   ~FileHandlersInfo();
31
32   std::vector<FileHandlerInfo> handlers;
33 };
34
35 }  // namespace extensions
36
37 #endif  // CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_