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/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 198 } |
199 | 199 |
200 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( | 200 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( |
201 const WebString& origin_identifier) { | 201 const WebString& origin_identifier) { |
202 return DatabaseUtil::DatabaseGetSpaceAvailable( | 202 return DatabaseUtil::DatabaseGetSpaceAvailable( |
203 origin_identifier, sync_message_filter_); | 203 origin_identifier, sync_message_filter_); |
204 } | 204 } |
205 | 205 |
206 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { | 206 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { |
207 if (!web_idb_factory_) | 207 if (!web_idb_factory_) |
208 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); | 208 web_idb_factory_.reset(new RendererWebIDBFactoryImpl(thread_safe_sender_)); |
209 return web_idb_factory_.get(); | 209 return web_idb_factory_.get(); |
210 } | 210 } |
211 | 211 |
212 WebMimeRegistry::SupportsType | 212 WebMimeRegistry::SupportsType |
213 WorkerWebKitPlatformSupportImpl::supportsMIMEType( | 213 WorkerWebKitPlatformSupportImpl::supportsMIMEType( |
214 const WebString&) { | 214 const WebString&) { |
215 return WebMimeRegistry::IsSupported; | 215 return WebMimeRegistry::IsSupported; |
216 } | 216 } |
217 | 217 |
218 WebMimeRegistry::SupportsType | 218 WebMimeRegistry::SupportsType |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 return base::FilePath(file_extension).AsUTF16Unsafe(); | 290 return base::FilePath(file_extension).AsUTF16Unsafe(); |
291 } | 291 } |
292 | 292 |
293 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { | 293 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { |
294 if (!blob_registry_.get() && thread_safe_sender_.get()) | 294 if (!blob_registry_.get() && thread_safe_sender_.get()) |
295 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 295 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); |
296 return blob_registry_.get(); | 296 return blob_registry_.get(); |
297 } | 297 } |
298 | 298 |
299 } // namespace content | 299 } // namespace content |
OLD | NEW |