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/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 if (!web_idb_factory_) | 405 if (!web_idb_factory_) |
406 web_idb_factory_.reset( | 406 web_idb_factory_.reset( |
407 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); | 407 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); |
408 return web_idb_factory_.get(); | 408 return web_idb_factory_.get(); |
409 } | 409 } |
410 | 410 |
411 //------------------------------------------------------------------------------ | 411 //------------------------------------------------------------------------------ |
412 | 412 |
413 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { | 413 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { |
414 if (!web_file_system_) | 414 if (!web_file_system_) |
415 web_file_system_.reset(new WebFileSystemImpl()); | 415 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_, |
| 416 thread_safe_sender_.get())); |
416 return web_file_system_.get(); | 417 return web_file_system_.get(); |
417 } | 418 } |
418 | 419 |
419 //------------------------------------------------------------------------------ | 420 //------------------------------------------------------------------------------ |
420 | 421 |
421 WebMimeRegistry::SupportsType | 422 WebMimeRegistry::SupportsType |
422 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType( | 423 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType( |
423 const WebString& mime_type, | 424 const WebString& mime_type, |
424 const WebString& codecs) { | 425 const WebString& codecs) { |
425 return supportsMediaMIMEType(mime_type, codecs, WebString()); | 426 return supportsMediaMIMEType(mime_type, codecs, WebString()); |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 const WebKit::WebURL& storage_partition, | 1163 const WebKit::WebURL& storage_partition, |
1163 WebKit::WebStorageQuotaType type, | 1164 WebKit::WebStorageQuotaType type, |
1164 WebKit::WebStorageQuotaCallbacks* callbacks) { | 1165 WebKit::WebStorageQuotaCallbacks* callbacks) { |
1165 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( | 1166 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( |
1166 storage_partition, | 1167 storage_partition, |
1167 static_cast<quota::StorageType>(type), | 1168 static_cast<quota::StorageType>(type), |
1168 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1169 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1169 } | 1170 } |
1170 | 1171 |
1171 } // namespace content | 1172 } // namespace content |
OLD | NEW |