OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Stylesheet: new WebInspector.ResourceType("stylesheet", "Stylesheet", WebIns
pector.resourceCategories.Stylesheet, true), | 183 Stylesheet: new WebInspector.ResourceType("stylesheet", "Stylesheet", WebIns
pector.resourceCategories.Stylesheet, true), |
184 Image: new WebInspector.ResourceType("image", "Image", WebInspector.resource
Categories.Image, false), | 184 Image: new WebInspector.ResourceType("image", "Image", WebInspector.resource
Categories.Image, false), |
185 Media: new WebInspector.ResourceType("media", "Media", WebInspector.resource
Categories.Media, false), | 185 Media: new WebInspector.ResourceType("media", "Media", WebInspector.resource
Categories.Media, false), |
186 Font: new WebInspector.ResourceType("font", "Font", WebInspector.resourceCat
egories.Font, false), | 186 Font: new WebInspector.ResourceType("font", "Font", WebInspector.resourceCat
egories.Font, false), |
187 Document: new WebInspector.ResourceType("document", "Document", WebInspector
.resourceCategories.Document, true), | 187 Document: new WebInspector.ResourceType("document", "Document", WebInspector
.resourceCategories.Document, true), |
188 TextTrack: new WebInspector.ResourceType("texttrack", "TextTrack", WebInspec
tor.resourceCategories.Other, true), | 188 TextTrack: new WebInspector.ResourceType("texttrack", "TextTrack", WebInspec
tor.resourceCategories.Other, true), |
189 WebSocket: new WebInspector.ResourceType("websocket", "WebSocket", WebInspec
tor.resourceCategories.WebSocket, false), | 189 WebSocket: new WebInspector.ResourceType("websocket", "WebSocket", WebInspec
tor.resourceCategories.WebSocket, false), |
190 Other: new WebInspector.ResourceType("other", "Other", WebInspector.resource
Categories.Other, false), | 190 Other: new WebInspector.ResourceType("other", "Other", WebInspector.resource
Categories.Other, false), |
191 SourceMapScript: new WebInspector.ResourceType("sm-script", "Script", WebIns
pector.resourceCategories.Script, false), | 191 SourceMapScript: new WebInspector.ResourceType("sm-script", "Script", WebIns
pector.resourceCategories.Script, false), |
192 SourceMapStyleSheet: new WebInspector.ResourceType("sm-stylesheet", "Stylesh
eet", WebInspector.resourceCategories.Stylesheet, false), | 192 SourceMapStyleSheet: new WebInspector.ResourceType("sm-stylesheet", "Stylesh
eet", WebInspector.resourceCategories.Stylesheet, false), |
193 Manifest: new WebInspector.ResourceType("manifest", "Manifest", WebInspector
.resourceCategories.Manifest, false), | 193 Manifest: new WebInspector.ResourceType("manifest", "Manifest", WebInspector
.resourceCategories.Manifest, true), |
194 } | 194 } |
195 | 195 |
196 /** | 196 /** |
197 * @param {string} url | 197 * @param {string} url |
198 * @return {string} | 198 * @return {string} |
199 */ | 199 */ |
200 WebInspector.ResourceType.mimeFromURL = function(url) | 200 WebInspector.ResourceType.mimeFromURL = function(url) |
201 { | 201 { |
202 var name = WebInspector.TextUtils.fileName(url); | 202 var name = WebInspector.TextUtils.fileName(url); |
203 if (WebInspector.ResourceType.mimeTypeByName[name]) { | 203 if (WebInspector.ResourceType.mimeTypeByName[name]) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 "tiff": "image/tiff", | 299 "tiff": "image/tiff", |
300 "tif": "image/tif", | 300 "tif": "image/tif", |
301 "bmp": "image/bmp", | 301 "bmp": "image/bmp", |
302 | 302 |
303 // Font | 303 // Font |
304 "ttf": "font/opentype", | 304 "ttf": "font/opentype", |
305 "otf": "font/opentype", | 305 "otf": "font/opentype", |
306 "ttc": "font/opentype", | 306 "ttc": "font/opentype", |
307 "woff": "application/font-woff" | 307 "woff": "application/font-woff" |
308 } | 308 } |
OLD | NEW |