Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Side by Side Diff: chrome/worker/worker_webkitclient_impl.cc

Issue 6681028: Move the blob related code to content, and also move the blob messages to the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | chrome_frame/renderer_glue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.cc ('k') | chrome_frame/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698