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

Side by Side Diff: content/worker/worker_webkitplatformsupport_impl.cc

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « content/worker/worker_webkitplatformsupport_impl.h ('k') | webkit/base/data_element.h » ('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) 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/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/database_util.h" 10 #include "content/common/database_util.h"
11 #include "content/common/fileapi/webblobregistry_impl.h"
12 #include "content/common/fileapi/webfilesystem_impl.h" 11 #include "content/common/fileapi/webfilesystem_impl.h"
13 #include "content/common/file_utilities_messages.h" 12 #include "content/common/file_utilities_messages.h"
14 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" 13 #include "content/common/indexed_db/proxy_webidbfactory_impl.h"
15 #include "content/common/mime_registry_messages.h" 14 #include "content/common/mime_registry_messages.h"
16 #include "content/common/webmessageportchannel_impl.h" 15 #include "content/common/webmessageportchannel_impl.h"
17 #include "content/worker/worker_thread.h" 16 #include "content/worker/worker_thread.h"
18 #include "ipc/ipc_sync_message_filter.h" 17 #include "ipc/ipc_sync_message_filter.h"
19 #include "net/base/mime_util.h" 18 #include "net/base/mime_util.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h"
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h" 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 268
270 WebString WorkerWebKitPlatformSupportImpl::preferredExtensionForMIMEType( 269 WebString WorkerWebKitPlatformSupportImpl::preferredExtensionForMIMEType(
271 const WebString& mime_type) { 270 const WebString& mime_type) {
272 base::FilePath::StringType file_extension; 271 base::FilePath::StringType file_extension;
273 SendSyncMessageFromAnyThread( 272 SendSyncMessageFromAnyThread(
274 new MimeRegistryMsg_GetPreferredExtensionForMimeType( 273 new MimeRegistryMsg_GetPreferredExtensionForMimeType(
275 UTF16ToASCII(mime_type), &file_extension)); 274 UTF16ToASCII(mime_type), &file_extension));
276 return webkit_base::FilePathStringToWebString(file_extension); 275 return webkit_base::FilePathStringToWebString(file_extension);
277 } 276 }
278 277
279 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() {
280 if (!blob_registry_.get())
281 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current()));
282 return blob_registry_.get();
283 }
284
285 } // namespace content 278 } // namespace content
OLDNEW
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.h ('k') | webkit/base/data_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698