| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_extensions.h" | 8 #include "chrome/browser/download/download_extensions.h" |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 { "mdz", AllowOnUserGesture }, | 136 { "mdz", AllowOnUserGesture }, |
| 137 { "mht", AllowOnUserGesture }, | 137 { "mht", AllowOnUserGesture }, |
| 138 { "mhtml", AllowOnUserGesture }, | 138 { "mhtml", AllowOnUserGesture }, |
| 139 { "mmc", AllowOnUserGesture }, | 139 { "mmc", AllowOnUserGesture }, |
| 140 { "msc", AllowOnUserGesture }, | 140 { "msc", AllowOnUserGesture }, |
| 141 { "msh", AllowOnUserGesture }, | 141 { "msh", AllowOnUserGesture }, |
| 142 { "mshxml", AllowOnUserGesture }, | 142 { "mshxml", AllowOnUserGesture }, |
| 143 { "msi", AllowOnUserGesture }, | 143 { "msi", AllowOnUserGesture }, |
| 144 { "msp", AllowOnUserGesture }, | 144 { "msp", AllowOnUserGesture }, |
| 145 { "mst", AllowOnUserGesture }, | 145 { "mst", AllowOnUserGesture }, |
| 146 { "ocx", AllowOnUserGesture }, | 146 { "ocx", Dangerous }, |
| 147 { "ops", AllowOnUserGesture }, | 147 { "ops", AllowOnUserGesture }, |
| 148 { "pcd", AllowOnUserGesture }, | 148 { "pcd", AllowOnUserGesture }, |
| 149 { "pif", AllowOnUserGesture }, | 149 { "pif", AllowOnUserGesture }, |
| 150 { "plg", AllowOnUserGesture }, | 150 { "plg", AllowOnUserGesture }, |
| 151 { "prf", AllowOnUserGesture }, | 151 { "prf", AllowOnUserGesture }, |
| 152 { "prg", AllowOnUserGesture }, | 152 { "prg", AllowOnUserGesture }, |
| 153 { "pst", AllowOnUserGesture }, | 153 { "pst", AllowOnUserGesture }, |
| 154 { "reg", AllowOnUserGesture }, | 154 { "reg", AllowOnUserGesture }, |
| 155 { "scf", AllowOnUserGesture }, | 155 { "scf", AllowOnUserGesture }, |
| 156 { "scr", AllowOnUserGesture }, | 156 { "scr", AllowOnUserGesture }, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 for (size_t i = 0; i < arraysize(kExecutableBlackList); ++i) { | 240 for (size_t i = 0; i < arraysize(kExecutableBlackList); ++i) { |
| 241 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type)) | 241 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type)) |
| 242 return false; | 242 return false; |
| 243 } | 243 } |
| 244 // We consider only other application types to be executable. | 244 // We consider only other application types to be executable. |
| 245 return net::MatchesMimeType("application/*", mime_type); | 245 return net::MatchesMimeType("application/*", mime_type); |
| 246 } | 246 } |
| 247 | 247 |
| 248 | 248 |
| 249 } // namespace download_util | 249 } // namespace download_util |
| OLD | NEW |