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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 19387002: Implement Worker-MainThread bridge for FileSystem API in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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
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/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 if (!web_idb_factory_) 398 if (!web_idb_factory_)
399 web_idb_factory_.reset( 399 web_idb_factory_.reset(
400 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); 400 new RendererWebIDBFactoryImpl(thread_safe_sender_.get()));
401 return web_idb_factory_.get(); 401 return web_idb_factory_.get();
402 } 402 }
403 403
404 //------------------------------------------------------------------------------ 404 //------------------------------------------------------------------------------
405 405
406 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { 406 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() {
407 if (!web_file_system_) 407 if (!web_file_system_)
408 web_file_system_.reset(new WebFileSystemImpl()); 408 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_.get()));
409 return web_file_system_.get(); 409 return web_file_system_.get();
410 } 410 }
411 411
412 //------------------------------------------------------------------------------ 412 //------------------------------------------------------------------------------
413 413
414 WebMimeRegistry::SupportsType 414 WebMimeRegistry::SupportsType
415 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType( 415 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType(
416 const WebString& mime_type, 416 const WebString& mime_type,
417 const WebString& codecs) { 417 const WebString& codecs) {
418 return supportsMediaMIMEType(mime_type, codecs, WebString()); 418 return supportsMediaMIMEType(mime_type, codecs, WebString());
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 const WebKit::WebURL& storage_partition, 1148 const WebKit::WebURL& storage_partition,
1149 WebKit::WebStorageQuotaType type, 1149 WebKit::WebStorageQuotaType type,
1150 WebKit::WebStorageQuotaCallbacks* callbacks) { 1150 WebKit::WebStorageQuotaCallbacks* callbacks) {
1151 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( 1151 ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota(
1152 storage_partition, 1152 storage_partition,
1153 static_cast<quota::StorageType>(type), 1153 static_cast<quota::StorageType>(type),
1154 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1154 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1155 } 1155 }
1156 1156
1157 } // namespace content 1157 } // namespace content
OLDNEW
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.cc ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698