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

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

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | « chrome/browser/download/download_util.cc ('k') | chrome/browser/download_file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <set>
6 #include <string>
7
8 #include "chrome/browser/download_util.h"
9
10 namespace download_util {
11
12 // For file extensions taken from mozilla:
13
14 /* ***** BEGIN LICENSE BLOCK *****
15 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
16 *
17 * The contents of this file are subject to the Mozilla Public License Version
18 * 1.1 (the "License"); you may not use this file except in compliance with
19 * the License. You may obtain a copy of the License at
20 * http://www.mozilla.org/MPL/
21 *
22 * Software distributed under the License is distributed on an "AS IS" basis,
23 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
24 * for the specific language governing rights and limitations under the
25 * License.
26 *
27 * The Original Code is Mozilla Communicator client code, released
28 * March 31, 1998.
29 *
30 * The Initial Developer of the Original Code is
31 * Netscape Communications Corporation.
32 * Portions created by the Initial Developer are Copyright (C) 1998-1999
33 * the Initial Developer. All Rights Reserved.
34 *
35 * Contributor(s):
36 * Doug Turner <dougt@netscape.com>
37 * Dean Tessman <dean_tessman@hotmail.com>
38 * Brodie Thiesfield <brofield@jellycan.com>
39 * Jungshik Shin <jshin@i18nl10n.com>
40 *
41 * Alternatively, the contents of this file may be used under the terms of
42 * either of the GNU General Public License Version 2 or later (the "GPL"),
43 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
44 * in which case the provisions of the GPL or the LGPL are applicable instead
45 * of those above. If you wish to allow use of your version of this file only
46 * under the terms of either the GPL or the LGPL, and not to allow others to
47 * use your version of this file under the terms of the MPL, indicate your
48 * decision by deleting the provisions above and replace them with the notice
49 * and other provisions required by the GPL or the LGPL. If you do not delete
50 * the provisions above, a recipient may use your version of this file under
51 * the terms of any one of the MPL, the GPL or the LGPL.
52 *
53 * ***** END LICENSE BLOCK ***** */
54
55 static const wchar_t* const g_executables[] = {
56 L"ad",
57 L"ade",
58 L"adp",
59 L"app",
60 L"application",
61 L"asp",
62 L"bas",
63 L"bat",
64 L"chm",
65 L"cmd",
66 L"com",
67 L"cpl",
68 L"crt",
69 L"exe",
70 L"fxp",
71 L"hlp",
72 L"hta",
73 L"inf",
74 L"ins",
75 L"isp",
76 L"js",
77 L"jse",
78 L"lnk",
79 L"mad",
80 L"maf",
81 L"mag",
82 L"mam",
83 L"maq",
84 L"mar",
85 L"mas",
86 L"mat",
87 L"mau",
88 L"mav",
89 L"maw",
90 L"mda",
91 L"mdb",
92 L"mde",
93 L"mdt",
94 L"mdw",
95 L"mdz",
96 L"msc",
97 L"msh",
98 L"mshxml",
99 L"msi",
100 L"msp",
101 L"mst",
102 L"ops",
103 L"pcd",
104 L"pif",
105 L"plg",
106 L"prf",
107 L"prg",
108 L"pst",
109 L"reg",
110 L"scf",
111 L"scr",
112 L"sct",
113 L"shb",
114 L"shs",
115 L"url",
116 L"vb",
117 L"vbe",
118 L"vbs",
119 L"vsd",
120 L"vsmacros",
121 L"vss",
122 L"vst",
123 L"vsw",
124 L"ws",
125 L"wsc",
126 L"wsf",
127 L"wsh"
128 };
129
130 void InitializeExeTypes(std::set<std::wstring>* exe_extensions) {
131 DCHECK(exe_extensions);
132 for (size_t i = 0; i < arraysize(g_executables); ++i)
133 exe_extensions->insert(g_executables[i]);
134 }
135
136 } // namespace download_util
137
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698