OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/worker/worker_webkitclient_impl.h" | 5 #include "content/worker/worker_webkitclient_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/worker/worker_thread.h" | |
10 #include "content/common/database_util.h" | 9 #include "content/common/database_util.h" |
11 #include "content/common/file_system/webfilesystem_impl.h" | 10 #include "content/common/file_system/webfilesystem_impl.h" |
12 #include "content/common/file_utilities_messages.h" | 11 #include "content/common/file_utilities_messages.h" |
13 #include "content/common/mime_registry_messages.h" | 12 #include "content/common/mime_registry_messages.h" |
14 #include "content/common/webblobregistry_impl.h" | 13 #include "content/common/webblobregistry_impl.h" |
15 #include "content/common/webmessageportchannel_impl.h" | 14 #include "content/common/webmessageportchannel_impl.h" |
| 15 #include "content/worker/worker_thread.h" |
16 #include "ipc/ipc_sync_message_filter.h" | 16 #include "ipc/ipc_sync_message_filter.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
20 #include "webkit/glue/webfileutilities_impl.h" | 20 #include "webkit/glue/webfileutilities_impl.h" |
21 #include "webkit/glue/webkit_glue.h" | 21 #include "webkit/glue/webkit_glue.h" |
22 | 22 |
23 using WebKit::WebBlobRegistry; | 23 using WebKit::WebBlobRegistry; |
24 using WebKit::WebClipboard; | 24 using WebKit::WebClipboard; |
25 using WebKit::WebFileSystem; | 25 using WebKit::WebFileSystem; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 new MimeRegistryMsg_GetPreferredExtensionForMimeType( | 249 new MimeRegistryMsg_GetPreferredExtensionForMimeType( |
250 UTF16ToASCII(mime_type), &file_extension)); | 250 UTF16ToASCII(mime_type), &file_extension)); |
251 return webkit_glue::FilePathStringToWebString(file_extension); | 251 return webkit_glue::FilePathStringToWebString(file_extension); |
252 } | 252 } |
253 | 253 |
254 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() { | 254 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() { |
255 if (!blob_registry_.get()) | 255 if (!blob_registry_.get()) |
256 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); | 256 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); |
257 return blob_registry_.get(); | 257 return blob_registry_.get(); |
258 } | 258 } |
OLD | NEW |