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