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

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 + nits fix Created 7 years, 5 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/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 if (!web_idb_factory_) 389 if (!web_idb_factory_)
390 web_idb_factory_.reset( 390 web_idb_factory_.reset(
391 new RendererWebIDBFactoryImpl(thread_safe_sender_.get())); 391 new RendererWebIDBFactoryImpl(thread_safe_sender_.get()));
392 return web_idb_factory_.get(); 392 return web_idb_factory_.get();
393 } 393 }
394 394
395 //------------------------------------------------------------------------------ 395 //------------------------------------------------------------------------------
396 396
397 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() { 397 WebFileSystem* RendererWebKitPlatformSupportImpl::fileSystem() {
398 if (!web_file_system_) 398 if (!web_file_system_)
399 web_file_system_.reset(new WebFileSystemImpl()); 399 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_));
400 return web_file_system_.get(); 400 return web_file_system_.get();
401 } 401 }
402 402
403 //------------------------------------------------------------------------------ 403 //------------------------------------------------------------------------------
404 404
405 WebMimeRegistry::SupportsType 405 WebMimeRegistry::SupportsType
406 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType( 406 RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType(
407 const WebString& mime_type, 407 const WebString& mime_type,
408 const WebString& codecs) { 408 const WebString& codecs) {
409 return supportsMediaMIMEType(mime_type, codecs, WebString()); 409 return supportsMediaMIMEType(mime_type, codecs, WebString());
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 void RendererWebKitPlatformSupportImpl::setDeviceMotionListener( 1066 void RendererWebKitPlatformSupportImpl::setDeviceMotionListener(
1067 WebKit::WebDeviceMotionListener* listener) { 1067 WebKit::WebDeviceMotionListener* listener) {
1068 if (!device_motion_event_pump_) { 1068 if (!device_motion_event_pump_) {
1069 device_motion_event_pump_.reset(new DeviceMotionEventPump); 1069 device_motion_event_pump_.reset(new DeviceMotionEventPump);
1070 device_motion_event_pump_->Attach(RenderThreadImpl::current()); 1070 device_motion_event_pump_->Attach(RenderThreadImpl::current());
1071 } 1071 }
1072 device_motion_event_pump_->SetListener(listener); 1072 device_motion_event_pump_->SetListener(listener);
1073 } 1073 }
1074 1074
1075 } // namespace content 1075 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698