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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 sync_message_filter_.get()); | 209 sync_message_filter_.get()); |
210 } | 210 } |
211 | 211 |
212 blink::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { | 212 blink::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { |
213 if (!web_idb_factory_) | 213 if (!web_idb_factory_) |
214 web_idb_factory_.reset( | 214 web_idb_factory_.reset( |
215 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); | 215 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); |
216 return web_idb_factory_.get(); | 216 return web_idb_factory_.get(); |
217 } | 217 } |
218 | 218 |
219 blink::WebPlatformDatabaseObserver* | 219 blink::WebDatabaseObserver* |
220 WorkerWebKitPlatformSupportImpl::databaseObserver() { | 220 WorkerWebKitPlatformSupportImpl::databaseObserver() { |
221 return web_database_observer_impl_.get(); | 221 return web_database_observer_impl_.get(); |
222 } | 222 } |
223 | 223 |
224 WebMimeRegistry::SupportsType | 224 WebMimeRegistry::SupportsType |
225 WorkerWebKitPlatformSupportImpl::supportsMIMEType( | 225 WorkerWebKitPlatformSupportImpl::supportsMIMEType( |
226 const WebString&) { | 226 const WebString&) { |
227 return WebMimeRegistry::IsSupported; | 227 return WebMimeRegistry::IsSupported; |
228 } | 228 } |
229 | 229 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 return; | 298 return; |
299 QuotaDispatcher::ThreadSpecificInstance( | 299 QuotaDispatcher::ThreadSpecificInstance( |
300 thread_safe_sender_.get(), | 300 thread_safe_sender_.get(), |
301 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 301 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
302 storage_partition, | 302 storage_partition, |
303 static_cast<quota::StorageType>(type), | 303 static_cast<quota::StorageType>(type), |
304 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 304 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
305 } | 305 } |
306 | 306 |
307 } // namespace content | 307 } // namespace content |
OLD | NEW |