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/logging.h" | 7 #include "base/logging.h" |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/child/database_util.h" | 10 #include "content/child/database_util.h" |
11 #include "content/child/fileapi/webfilesystem_impl.h" | 11 #include "content/child/fileapi/webfilesystem_impl.h" |
12 #include "content/child/indexed_db/proxy_webidbfactory_impl.h" | 12 #include "content/child/indexed_db/proxy_webidbfactory_impl.h" |
13 #include "content/child/thread_safe_sender.h" | 13 #include "content/child/thread_safe_sender.h" |
14 #include "content/child/webblobregistry_impl.h" | 14 #include "content/child/webblobregistry_impl.h" |
15 #include "content/child/webmessageportchannel_impl.h" | 15 #include "content/child/webmessageportchannel_impl.h" |
16 #include "content/common/file_utilities_messages.h" | 16 #include "content/common/file_utilities_messages.h" |
17 #include "content/common/mime_registry_messages.h" | 17 #include "content/common/mime_registry_messages.h" |
18 #include "content/worker/worker_thread.h" | 18 #include "content/worker/worker_thread.h" |
19 #include "ipc/ipc_sync_message_filter.h" | 19 #include "ipc/ipc_sync_message_filter.h" |
20 #include "net/base/mime_util.h" | 20 #include "net/base/mime_util.h" |
21 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 21 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
22 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 22 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
23 #include "third_party/WebKit/public/platform/WebString.h" | 23 #include "third_party/WebKit/public/platform/WebString.h" |
24 #include "third_party/WebKit/public/platform/WebURL.h" | 24 #include "third_party/WebKit/public/platform/WebURL.h" |
25 #include "webkit/base/file_path_string_conversions.h" | 25 #include "webkit/common/base/file_path_string_conversions.h" |
26 #include "webkit/glue/webfileutilities_impl.h" | 26 #include "webkit/glue/webfileutilities_impl.h" |
27 #include "webkit/glue/webkit_glue.h" | 27 #include "webkit/glue/webkit_glue.h" |
28 | 28 |
29 using WebKit::Platform; | 29 using WebKit::Platform; |
30 using WebKit::WebBlobRegistry; | 30 using WebKit::WebBlobRegistry; |
31 using WebKit::WebClipboard; | 31 using WebKit::WebClipboard; |
32 using WebKit::WebFileInfo; | 32 using WebKit::WebFileInfo; |
33 using WebKit::WebFileSystem; | 33 using WebKit::WebFileSystem; |
34 using WebKit::WebFileUtilities; | 34 using WebKit::WebFileUtilities; |
35 using WebKit::WebMessagePortChannel; | 35 using WebKit::WebMessagePortChannel; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 return webkit_base::FilePathStringToWebString(file_extension); | 281 return webkit_base::FilePathStringToWebString(file_extension); |
282 } | 282 } |
283 | 283 |
284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { | 284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { |
285 if (!blob_registry_.get() && thread_safe_sender_.get()) | 285 if (!blob_registry_.get() && thread_safe_sender_.get()) |
286 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 286 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); |
287 return blob_registry_.get(); | 287 return blob_registry_.get(); |
288 } | 288 } |
289 | 289 |
290 } // namespace content | 290 } // namespace content |
OLD | NEW |