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

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

Issue 243115: Add more extensions to our download_exe list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 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
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
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
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