OLD | NEW |
---|---|
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of mime; | 5 library mime.extension_map; |
6 | |
7 | 6 |
8 // TODO(ajohnsen): Use sorted list and binary search? | 7 // TODO(ajohnsen): Use sorted list and binary search? |
9 const Map<String, String> _DEFAULT_EXTENSION_MAP = const <String, String>{ | 8 const Map<String, String> DEFAULT_EXTENSION_MAP = const <String, String>{ |
Anders Johnsen
2014/05/13 09:16:22
Please un-const this. Const maps are really slow f
kevmoo
2014/05/13 17:48:39
Are they different than a normal LinkedHashMap?
I
Anders Johnsen
2014/05/14 07:36:07
Please don't commit while there are comments.
Con
| |
10 '123':'application/vnd.lotus-1-2-3', | 9 '123':'application/vnd.lotus-1-2-3', |
11 '3dml':'text/vnd.in3d.3dml', | 10 '3dml':'text/vnd.in3d.3dml', |
12 '3ds':'image/x-3ds', | 11 '3ds':'image/x-3ds', |
13 '3g2':'video/3gpp2', | 12 '3g2':'video/3gpp2', |
14 '3gp':'video/3gpp', | 13 '3gp':'video/3gpp', |
15 '7z':'application/x-7z-compressed', | 14 '7z':'application/x-7z-compressed', |
16 'aab':'application/x-authorware-bin', | 15 'aab':'application/x-authorware-bin', |
17 'aac':'audio/x-aac', | 16 'aac':'audio/x-aac', |
18 'aam':'application/x-authorware-map', | 17 'aam':'application/x-authorware-map', |
19 'aas':'application/x-authorware-seg', | 18 'aas':'application/x-authorware-seg', |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
982 'z5':'application/x-zmachine', | 981 'z5':'application/x-zmachine', |
983 'z6':'application/x-zmachine', | 982 'z6':'application/x-zmachine', |
984 'z7':'application/x-zmachine', | 983 'z7':'application/x-zmachine', |
985 'z8':'application/x-zmachine', | 984 'z8':'application/x-zmachine', |
986 'zaz':'application/vnd.zzazz.deck+xml', | 985 'zaz':'application/vnd.zzazz.deck+xml', |
987 'zip':'application/zip', | 986 'zip':'application/zip', |
988 'zir':'application/vnd.zul', | 987 'zir':'application/vnd.zul', |
989 'zirz':'application/vnd.zul', | 988 'zirz':'application/vnd.zul', |
990 'zmm':'application/vnd.handheld-entertainment+xml', | 989 'zmm':'application/vnd.handheld-entertainment+xml', |
991 }; | 990 }; |
OLD | NEW |