OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ |
6 #define CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ | 6 #define CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 struct FileHandlerInfo { | 14 struct FileHandlerInfo { |
15 FileHandlerInfo(); | 15 FileHandlerInfo(); |
16 ~FileHandlerInfo(); | 16 ~FileHandlerInfo(); |
17 | 17 |
18 std::string id; | 18 std::string id; |
19 std::string title; | 19 std::string title; |
20 | 20 |
21 // File extensions associated with this handler. | 21 // File extensions associated with this handler. |
22 std::set<std::string> extensions; | 22 std::set<std::string> extensions; |
23 | 23 |
24 // MIME types associated with this handler. | 24 // MIME types associated with this handler. |
25 std::set<std::string> types; | 25 std::set<std::string> types; |
26 }; | 26 }; |
27 | 27 |
28 struct FileHandlersInfo { | 28 struct FileHandlersInfo { |
benwells
2014/04/24 09:54:26
Remind me again why this struct is needed. If you
jackhou1
2014/04/24 14:48:20
It'll need to hold an icon for each file type. The
| |
29 explicit FileHandlersInfo(const std::vector<FileHandlerInfo>* handlers); | 29 FileHandlersInfo(); |
30 ~FileHandlersInfo(); | 30 ~FileHandlersInfo(); |
31 | 31 |
32 const std::vector<FileHandlerInfo>* handlers; | 32 std::vector<FileHandlerInfo> handlers; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace extensions | 35 } // namespace extensions |
36 | 36 |
37 #endif // CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ | 37 #endif // CHROME_COMMON_EXTENSIONS_FILE_HANDLER_INFO_H_ |
OLD | NEW |