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

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

Issue 10162015: Pull domstorage specifics out of RenderThreadImpl into DomStorageDispatcher (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragearea_impl.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/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/fileapi/webblobregistry_impl.h" 14 #include "content/common/fileapi/webblobregistry_impl.h"
15 #include "content/common/fileapi/webfilesystem_impl.h" 15 #include "content/common/fileapi/webfilesystem_impl.h"
16 #include "content/common/file_utilities_messages.h" 16 #include "content/common/file_utilities_messages.h"
17 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" 17 #include "content/common/indexed_db/proxy_webidbfactory_impl.h"
18 #include "content/common/mime_registry_messages.h" 18 #include "content/common/mime_registry_messages.h"
19 #include "content/common/npobject_util.h" 19 #include "content/common/npobject_util.h"
20 #include "content/common/view_messages.h" 20 #include "content/common/view_messages.h"
21 #include "content/common/webmessageportchannel_impl.h" 21 #include "content/common/webmessageportchannel_impl.h"
22 #include "content/public/common/content_switches.h" 22 #include "content/public/common/content_switches.h"
23 #include "content/public/common/gpu_info.h" 23 #include "content/public/common/gpu_info.h"
24 #include "content/public/renderer/content_renderer_client.h" 24 #include "content/public/renderer/content_renderer_client.h"
25 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
25 #include "content/renderer/gamepad_shared_memory_reader.h" 26 #include "content/renderer/gamepad_shared_memory_reader.h"
26 #include "content/renderer/media/audio_device.h" 27 #include "content/renderer/media/audio_device.h"
27 #include "content/renderer/media/audio_hardware.h" 28 #include "content/renderer/media/audio_hardware.h"
28 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 29 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
29 #include "content/renderer/render_thread_impl.h" 30 #include "content/renderer/render_thread_impl.h"
30 #include "content/renderer/render_view_impl.h" 31 #include "content/renderer/render_view_impl.h"
31 #include "content/renderer/renderer_clipboard_client.h" 32 #include "content/renderer/renderer_clipboard_client.h"
32 #include "content/renderer/renderer_webstoragenamespace_impl.h"
33 #include "content/renderer/websharedworkerrepository_impl.h" 33 #include "content/renderer/websharedworkerrepository_impl.h"
34 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
35 #include "ipc/ipc_sync_message_filter.h" 35 #include "ipc/ipc_sync_message_filter.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 303 }
304 304
305 RenderThreadImpl* thread = RenderThreadImpl::current(); 305 RenderThreadImpl* thread = RenderThreadImpl::current();
306 if (thread) // NULL in unittests. 306 if (thread) // NULL in unittests.
307 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled)); 307 thread->Send(new ViewHostMsg_SuddenTerminationChanged(enabled));
308 } 308 }
309 309
310 WebStorageNamespace* 310 WebStorageNamespace*
311 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace( 311 RendererWebKitPlatformSupportImpl::createLocalStorageNamespace(
312 const WebString& path, unsigned quota) { 312 const WebString& path, unsigned quota) {
313 return new RendererWebStorageNamespaceImpl(); 313 return new WebStorageNamespaceImpl();
314 } 314 }
315 315
316 316
317 //------------------------------------------------------------------------------ 317 //------------------------------------------------------------------------------
318 318
319 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() { 319 WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() {
320 if (!web_idb_factory_.get()) { 320 if (!web_idb_factory_.get()) {
321 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 321 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
322 web_idb_factory_.reset(WebIDBFactory::create()); 322 web_idb_factory_.reset(WebIDBFactory::create());
323 else 323 else
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 DCHECK(render_thread); 725 DCHECK(render_thread);
726 if (!render_thread) 726 if (!render_thread)
727 return NULL; 727 return NULL;
728 return render_thread->CreateMediaStreamCenter(client); 728 return render_thread->CreateMediaStreamCenter(client);
729 } 729 }
730 730
731 GpuChannelHostFactory* 731 GpuChannelHostFactory*
732 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 732 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
733 return RenderThreadImpl::current(); 733 return RenderThreadImpl::current();
734 } 734 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragearea_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698