Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: chrome/browser/download/download_extensions.cc

Issue 9700075: Add .ocx to the list of dangerous extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698