OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "chrome/browser/download/download_util.h" | 8 #include "chrome/browser/download/download_util.h" |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "com", | 70 "com", |
71 "cpl", | 71 "cpl", |
72 "crt", | 72 "crt", |
73 "dll", | 73 "dll", |
74 "exe", | 74 "exe", |
75 "fxp", | 75 "fxp", |
76 "hlp", | 76 "hlp", |
77 "hta", | 77 "hta", |
78 "htm", | 78 "htm", |
79 "html", | 79 "html", |
| 80 "htt", |
80 "inf", | 81 "inf", |
81 "ins", | 82 "ins", |
82 "isp", | 83 "isp", |
83 "jar", | 84 "jar", |
84 "js", | 85 "js", |
85 "jse", | 86 "jse", |
86 "lnk", | 87 "lnk", |
87 "mad", | 88 "mad", |
88 "maf", | 89 "maf", |
89 "mag", | 90 "mag", |
90 "mam", | 91 "mam", |
91 "maq", | 92 "maq", |
92 "mar", | 93 "mar", |
93 "mas", | 94 "mas", |
94 "mat", | 95 "mat", |
95 "mau", | 96 "mau", |
96 "mav", | 97 "mav", |
97 "maw", | 98 "maw", |
98 "mda", | 99 "mda", |
99 "mdb", | 100 "mdb", |
100 "mde", | 101 "mde", |
101 "mdt", | 102 "mdt", |
102 "mdw", | 103 "mdw", |
103 "mdz", | 104 "mdz", |
| 105 "mht", |
| 106 "mhtml", |
104 "msc", | 107 "msc", |
105 "msh", | 108 "msh", |
106 "mshxml", | 109 "mshxml", |
107 "msi", | 110 "msi", |
108 "msp", | 111 "msp", |
109 "mst", | 112 "mst", |
110 "ops", | 113 "ops", |
111 "pcd", | 114 "pcd", |
112 "pif", | 115 "pif", |
113 "plg", | 116 "plg", |
(...skipping 17 matching lines...) Expand all Loading... |
131 "vss", | 134 "vss", |
132 "vst", | 135 "vst", |
133 "vsw", | 136 "vsw", |
134 "ws", | 137 "ws", |
135 "wsc", | 138 "wsc", |
136 "wsf", | 139 "wsf", |
137 "wsh", | 140 "wsh", |
138 "xht", | 141 "xht", |
139 "xhtm", | 142 "xhtm", |
140 "xhtml", | 143 "xhtml", |
| 144 "xml", |
| 145 "xsl", |
| 146 "xslt", |
141 #elif defined(OS_LINUX) | 147 #elif defined(OS_LINUX) |
142 // TODO(estade): lengthen this list. | 148 // TODO(estade): lengthen this list. |
143 "exe", | 149 "exe", |
144 "pl", | 150 "pl", |
145 "py", | 151 "py", |
146 "rb", | 152 "rb", |
147 "sh", | 153 "sh", |
148 #elif defined(OS_MACOSX) | 154 #elif defined(OS_MACOSX) |
149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096 | 155 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096 |
150 "dmg", | 156 "dmg", |
151 #endif | 157 #endif |
152 }; | 158 }; |
153 | 159 |
154 void InitializeExeTypes(std::set<std::string>* exe_extensions) { | 160 void InitializeExeTypes(std::set<std::string>* exe_extensions) { |
155 DCHECK(exe_extensions); | 161 DCHECK(exe_extensions); |
156 for (size_t i = 0; i < arraysize(g_executables); ++i) | 162 for (size_t i = 0; i < arraysize(g_executables); ++i) |
157 exe_extensions->insert(g_executables[i]); | 163 exe_extensions->insert(g_executables[i]); |
158 } | 164 } |
159 | 165 |
160 } // namespace download_util | 166 } // namespace download_util |
OLD | NEW |