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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 "vss", | 131 "vss", |
132 "vst", | 132 "vst", |
133 "vsw", | 133 "vsw", |
134 "ws", | 134 "ws", |
135 "wsc", | 135 "wsc", |
136 "wsf", | 136 "wsf", |
137 "wsh", | 137 "wsh", |
138 "xht", | 138 "xht", |
139 "xhtm", | 139 "xhtm", |
140 "xhtml", | 140 "xhtml", |
141 #elif defined(OS_LINUX) | 141 #elif defined(OS_LINUX) || defined(OS_FREEBSD) |
142 // TODO(estade): lengthen this list. | 142 // TODO(estade): lengthen this list. |
143 "exe", | 143 "exe", |
144 "pl", | 144 "pl", |
145 "py", | 145 "py", |
146 "rb", | 146 "rb", |
147 "sh", | 147 "sh", |
148 #elif defined(OS_MACOSX) | 148 #elif defined(OS_MACOSX) |
149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096 | 149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096 |
150 "dmg", | 150 "dmg", |
151 #endif | 151 #endif |
152 }; | 152 }; |
153 | 153 |
154 void InitializeExeTypes(std::set<std::string>* exe_extensions) { | 154 void InitializeExeTypes(std::set<std::string>* exe_extensions) { |
155 DCHECK(exe_extensions); | 155 DCHECK(exe_extensions); |
156 for (size_t i = 0; i < arraysize(g_executables); ++i) | 156 for (size_t i = 0; i < arraysize(g_executables); ++i) |
157 exe_extensions->insert(g_executables[i]); | 157 exe_extensions->insert(g_executables[i]); |
158 } | 158 } |
159 | 159 |
160 } // namespace download_util | 160 } // namespace download_util |
OLD | NEW |