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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 NOTREACHED(); | 89 NOTREACHED(); |
90 return NULL; | 90 return NULL; |
91 } | 91 } |
92 | 92 |
93 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { | 93 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { |
94 return this; | 94 return this; |
95 } | 95 } |
96 | 96 |
97 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { | 97 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { |
98 if (!web_file_system_) | 98 if (!web_file_system_) |
99 web_file_system_.reset(new WebFileSystemImpl()); | 99 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_.get())); |
100 return web_file_system_.get(); | 100 return web_file_system_.get(); |
101 } | 101 } |
102 | 102 |
103 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { | 103 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { |
104 if (!file_utilities_) { | 104 if (!file_utilities_) { |
105 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); | 105 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); |
106 file_utilities_->set_sandbox_enabled(sandboxEnabled()); | 106 file_utilities_->set_sandbox_enabled(sandboxEnabled()); |
107 } | 107 } |
108 return file_utilities_.get(); | 108 return file_utilities_.get(); |
109 } | 109 } |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 const WebKit::WebURL& storage_partition, | 302 const WebKit::WebURL& storage_partition, |
303 WebKit::WebStorageQuotaType type, | 303 WebKit::WebStorageQuotaType type, |
304 WebKit::WebStorageQuotaCallbacks* callbacks) { | 304 WebKit::WebStorageQuotaCallbacks* callbacks) { |
305 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( | 305 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( |
306 storage_partition, | 306 storage_partition, |
307 static_cast<quota::StorageType>(type), | 307 static_cast<quota::StorageType>(type), |
308 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 308 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
309 } | 309 } |
310 | 310 |
311 } // namespace content | 311 } // namespace content |
OLD | NEW |