| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/worker/worker_webkitplatformsupport_impl.h" | 5 #include "content/worker/worker_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "content/common/database_util.h" | 10 #include "content/common/database_util.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 return WebMimeRegistry::IsSupported; | 226 return WebMimeRegistry::IsSupported; |
| 227 } | 227 } |
| 228 | 228 |
| 229 WebMimeRegistry::SupportsType | 229 WebMimeRegistry::SupportsType |
| 230 WorkerWebKitPlatformSupportImpl::supportsMediaMIMEType( | 230 WorkerWebKitPlatformSupportImpl::supportsMediaMIMEType( |
| 231 const WebString&, const WebString&, const WebString&) { | 231 const WebString&, const WebString&, const WebString&) { |
| 232 NOTREACHED(); | 232 NOTREACHED(); |
| 233 return WebMimeRegistry::IsSupported; | 233 return WebMimeRegistry::IsSupported; |
| 234 } | 234 } |
| 235 | 235 |
| 236 bool WorkerWebKitPlatformSupportImpl::supportsMediaSourceMIMEType( |
| 237 const WebKit::WebString& mimeType, const WebKit::WebString& codecs) { |
| 238 NOTREACHED(); |
| 239 return false; |
| 240 } |
| 241 |
| 236 WebMimeRegistry::SupportsType | 242 WebMimeRegistry::SupportsType |
| 237 WorkerWebKitPlatformSupportImpl::supportsNonImageMIMEType( | 243 WorkerWebKitPlatformSupportImpl::supportsNonImageMIMEType( |
| 238 const WebString&) { | 244 const WebString&) { |
| 239 NOTREACHED(); | 245 NOTREACHED(); |
| 240 return WebMimeRegistry::IsSupported; | 246 return WebMimeRegistry::IsSupported; |
| 241 } | 247 } |
| 242 | 248 |
| 243 WebString WorkerWebKitPlatformSupportImpl::mimeTypeForExtension( | 249 WebString WorkerWebKitPlatformSupportImpl::mimeTypeForExtension( |
| 244 const WebString& file_extension) { | 250 const WebString& file_extension) { |
| 245 std::string mime_type; | 251 std::string mime_type; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 275 return webkit_base::FilePathStringToWebString(file_extension); | 281 return webkit_base::FilePathStringToWebString(file_extension); |
| 276 } | 282 } |
| 277 | 283 |
| 278 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { | 284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { |
| 279 if (!blob_registry_.get() && thread_safe_sender_.get()) | 285 if (!blob_registry_.get() && thread_safe_sender_.get()) |
| 280 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_)); | 286 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_)); |
| 281 return blob_registry_.get(); | 287 return blob_registry_.get(); |
| 282 } | 288 } |
| 283 | 289 |
| 284 } // namespace content | 290 } // namespace content |
| OLD | NEW |