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

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

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: repurpose obsolete indexed-db switch to control idb on workers Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "content/common/database_util.h" 13 #include "content/common/database_util.h"
14 #include "content/common/file_system/webfilesystem_impl.h" 14 #include "content/common/file_system/webfilesystem_impl.h"
15 #include "content/common/file_utilities_messages.h" 15 #include "content/common/file_utilities_messages.h"
16 #include "content/common/mime_registry_messages.h" 16 #include "content/common/mime_registry_messages.h"
17 #include "content/common/npobject_util.h" 17 #include "content/common/npobject_util.h"
18 #include "content/common/view_messages.h" 18 #include "content/common/view_messages.h"
19 #include "content/common/webblobregistry_impl.h" 19 #include "content/common/webblobregistry_impl.h"
20 #include "content/common/webmessageportchannel_impl.h" 20 #include "content/common/webmessageportchannel_impl.h"
21 #include "content/common/worker_task_runner.h"
21 #include "content/public/common/content_switches.h" 22 #include "content/public/common/content_switches.h"
22 #include "content/public/renderer/content_renderer_client.h" 23 #include "content/public/renderer/content_renderer_client.h"
23 #include "content/renderer/gamepad_shared_memory_reader.h" 24 #include "content/renderer/gamepad_shared_memory_reader.h"
24 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" 25 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h"
25 #include "content/renderer/media/audio_device.h" 26 #include "content/renderer/media/audio_device.h"
26 #include "content/renderer/media/audio_hardware.h" 27 #include "content/renderer/media/audio_hardware.h"
27 #include "content/renderer/render_thread_impl.h" 28 #include "content/renderer/render_thread_impl.h"
28 #include "content/renderer/renderer_clipboard_client.h" 29 #include "content/renderer/renderer_clipboard_client.h"
29 #include "content/renderer/renderer_webaudiodevice_impl.h" 30 #include "content/renderer/renderer_webaudiodevice_impl.h"
30 #include "content/renderer/renderer_webidbfactory_impl.h" 31 #include "content/renderer/renderer_webidbfactory_impl.h"
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 return WebKitPlatformSupportImpl::userAgent(url); 636 return WebKitPlatformSupportImpl::userAgent(url);
636 } 637 }
637 638
638 void RendererWebKitPlatformSupportImpl::GetPlugins( 639 void RendererWebKitPlatformSupportImpl::GetPlugins(
639 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { 640 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) {
640 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) 641 if (!RenderThreadImpl::current()->plugin_refresh_allowed())
641 refresh = false; 642 refresh = false;
642 RenderThreadImpl::current()->Send( 643 RenderThreadImpl::current()->Send(
643 new ViewHostMsg_GetPlugins(refresh, plugins)); 644 new ViewHostMsg_GetPlugins(refresh, plugins));
644 } 645 }
646
647 void RendererWebKitPlatformSupportImpl::didStartWorkerRunLoop(
648 const WebKit::WebWorkerRunLoop& runLoop) {
649 DCHECK(ChildThread::current());
650 WorkerTaskRunner* worker_tracker =
651 ChildThread::current()->worker_task_runner();
652 worker_tracker->RegisterCurrentWorkerLoop(runLoop);
653 }
654
655 void RendererWebKitPlatformSupportImpl::didStopWorkerRunLoop(
656 const WebKit::WebWorkerRunLoop& runLoop) {
657 DCHECK(ChildThread::current());
658 WorkerTaskRunner* worker_tracker =
659 ChildThread::current()->worker_task_runner();
660 worker_tracker->UnRegisterCurrentWorkerLoop(runLoop);
661 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698