| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 bool ChromiumBridge::layoutTestMode() | 190 bool ChromiumBridge::layoutTestMode() |
| 191 { | 191 { |
| 192 return WebKit::layoutTestMode(); | 192 return WebKit::layoutTestMode(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 // MimeType ------------------------------------------------------------------- | 195 // MimeType ------------------------------------------------------------------- |
| 196 | 196 |
| 197 bool ChromiumBridge::isSupportedImageMIMEType(const String& mimeType) | 197 bool ChromiumBridge::isSupportedImageMIMEType(const String& mimeType) |
| 198 { | 198 { |
| 199 return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType); | 199 return webKitClient()->mimeRegistry()->supportsImageMIMEType(mimeType) |
| 200 != WebMimeRegistry::IsNotSupported; |
| 200 } | 201 } |
| 201 | 202 |
| 202 bool ChromiumBridge::isSupportedJavaScriptMIMEType(const String& mimeType) | 203 bool ChromiumBridge::isSupportedJavaScriptMIMEType(const String& mimeType) |
| 203 { | 204 { |
| 204 return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType); | 205 return webKitClient()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType) |
| 206 != WebMimeRegistry::IsNotSupported; |
| 205 } | 207 } |
| 206 | 208 |
| 207 bool ChromiumBridge::isSupportedNonImageMIMEType(const String& mimeType) | 209 bool ChromiumBridge::isSupportedNonImageMIMEType(const String& mimeType) |
| 208 { | 210 { |
| 209 return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType); | 211 return webKitClient()->mimeRegistry()->supportsNonImageMIMEType(mimeType) |
| 212 != WebMimeRegistry::IsNotSupported; |
| 210 } | 213 } |
| 211 | 214 |
| 212 String ChromiumBridge::mimeTypeForExtension(const String& extension) | 215 String ChromiumBridge::mimeTypeForExtension(const String& extension) |
| 213 { | 216 { |
| 214 return webKitClient()->mimeRegistry()->mimeTypeForExtension(extension); | 217 return webKitClient()->mimeRegistry()->mimeTypeForExtension(extension); |
| 215 } | 218 } |
| 216 | 219 |
| 217 String ChromiumBridge::mimeTypeFromFile(const String& path) | 220 String ChromiumBridge::mimeTypeFromFile(const String& path) |
| 218 { | 221 { |
| 219 return webKitClient()->mimeRegistry()->mimeTypeFromFile(path); | 222 return webKitClient()->mimeRegistry()->mimeTypeFromFile(path); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 450 |
| 448 long long ChromiumBridge::databaseGetFileSize(const String& fileName) | 451 long long ChromiumBridge::databaseGetFileSize(const String& fileName) |
| 449 { | 452 { |
| 450 // FIXME: un-stub when the code on the browser process side is submitted | 453 // FIXME: un-stub when the code on the browser process side is submitted |
| 451 //return webKitClient()->databaseGetFileSize(WebString(fileName)); | 454 //return webKitClient()->databaseGetFileSize(WebString(fileName)); |
| 452 return 0LL; | 455 return 0LL; |
| 453 } | 456 } |
| 454 #endif | 457 #endif |
| 455 | 458 |
| 456 } // namespace WebCore | 459 } // namespace WebCore |
| OLD | NEW |