| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 switch (resourceType) { | 241 switch (resourceType) { |
| 242 case Resource::Image: | 242 case Resource::Image: |
| 243 return MIMETypeRegistry::isSupportedImagePrefixedMIMEType(mimeType); | 243 return MIMETypeRegistry::isSupportedImagePrefixedMIMEType(mimeType); |
| 244 case Resource::Script: | 244 case Resource::Script: |
| 245 return MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType); | 245 return MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType); |
| 246 case Resource::CSSStyleSheet: | 246 case Resource::CSSStyleSheet: |
| 247 return MIMETypeRegistry::isSupportedStyleSheetMIMEType(mimeType); | 247 return MIMETypeRegistry::isSupportedStyleSheetMIMEType(mimeType); |
| 248 case Resource::Font: | 248 case Resource::Font: |
| 249 return MIMETypeRegistry::isSupportedFontMIMEType(mimeType); | 249 return MIMETypeRegistry::isSupportedFontMIMEType(mimeType); |
| 250 case Resource::Media: | 250 case Resource::Media: |
| 251 return MIMETypeRegistry::isSupportedMediaSourceMIMEType(mimeType, | 251 return MIMETypeRegistry::isSupportedMediaMIMEType(mimeType, String()); |
| 252 String()); | |
| 253 case Resource::TextTrack: | 252 case Resource::TextTrack: |
| 254 return MIMETypeRegistry::isSupportedTextTrackMIMEType(mimeType); | 253 return MIMETypeRegistry::isSupportedTextTrackMIMEType(mimeType); |
| 255 case Resource::Raw: | 254 case Resource::Raw: |
| 256 return true; | 255 return true; |
| 257 default: | 256 default: |
| 258 NOTREACHED(); | 257 NOTREACHED(); |
| 259 } | 258 } |
| 260 return false; | 259 return false; |
| 261 } | 260 } |
| 262 | 261 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 461 |
| 463 DEFINE_TRACE(LinkLoader) { | 462 DEFINE_TRACE(LinkLoader) { |
| 464 visitor->trace(m_client); | 463 visitor->trace(m_client); |
| 465 visitor->trace(m_prerender); | 464 visitor->trace(m_prerender); |
| 466 visitor->trace(m_linkPreloadResourceClient); | 465 visitor->trace(m_linkPreloadResourceClient); |
| 467 ResourceOwner<Resource, ResourceClient>::trace(visitor); | 466 ResourceOwner<Resource, ResourceClient>::trace(visitor); |
| 468 PrerenderClient::trace(visitor); | 467 PrerenderClient::trace(visitor); |
| 469 } | 468 } |
| 470 | 469 |
| 471 } // namespace blink | 470 } // namespace blink |
| OLD | NEW |