| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 NOTREACHED(); | 87 NOTREACHED(); |
| 88 return NULL; | 88 return NULL; |
| 89 } | 89 } |
| 90 | 90 |
| 91 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { | 91 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { |
| 92 return this; | 92 return this; |
| 93 } | 93 } |
| 94 | 94 |
| 95 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { | 95 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { |
| 96 if (!web_file_system_) | 96 if (!web_file_system_) |
| 97 web_file_system_.reset(new WebFileSystemImpl()); | 97 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_)); |
| 98 return web_file_system_.get(); | 98 return web_file_system_.get(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { | 101 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { |
| 102 if (!file_utilities_) { | 102 if (!file_utilities_) { |
| 103 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); | 103 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); |
| 104 file_utilities_->set_sandbox_enabled(sandboxEnabled()); | 104 file_utilities_->set_sandbox_enabled(sandboxEnabled()); |
| 105 } | 105 } |
| 106 return file_utilities_.get(); | 106 return file_utilities_.get(); |
| 107 } | 107 } |
| (...skipping 182 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 |