OLD | NEW |
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/content_switches.h" | 13 #include "content/common/content_switches.h" |
14 #include "content/common/database_util.h" | 14 #include "content/common/database_util.h" |
15 #include "content/common/file_system/webfilesystem_impl.h" | 15 #include "content/common/file_system/webfilesystem_impl.h" |
16 #include "content/common/file_utilities_messages.h" | 16 #include "content/common/file_utilities_messages.h" |
17 #include "content/common/mime_registry_messages.h" | 17 #include "content/common/mime_registry_messages.h" |
18 #include "content/common/npobject_util.h" | 18 #include "content/common/npobject_util.h" |
19 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
20 #include "content/common/webblobregistry_impl.h" | 20 #include "content/common/webblobregistry_impl.h" |
21 #include "content/common/webmessageportchannel_impl.h" | 21 #include "content/common/webmessageportchannel_impl.h" |
22 #include "content/renderer/content_renderer_client.h" | 22 #include "content/public/renderer/content_renderer_client.h" |
23 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 23 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
24 #include "content/renderer/media/audio_device.h" | 24 #include "content/renderer/media/audio_device.h" |
25 #include "content/renderer/render_thread.h" | 25 #include "content/renderer/render_thread.h" |
26 #include "content/renderer/render_view.h" | 26 #include "content/renderer/render_view.h" |
27 #include "content/renderer/renderer_webaudiodevice_impl.h" | 27 #include "content/renderer/renderer_webaudiodevice_impl.h" |
28 #include "content/renderer/renderer_webidbfactory_impl.h" | 28 #include "content/renderer/renderer_webidbfactory_impl.h" |
29 #include "content/renderer/renderer_webstoragenamespace_impl.h" | 29 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
30 #include "content/renderer/websharedworkerrepository_impl.h" | 30 #include "content/renderer/websharedworkerrepository_impl.h" |
31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
32 #include "ipc/ipc_sync_message_filter.h" | 32 #include "ipc/ipc_sync_message_filter.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 } | 601 } |
602 | 602 |
603 //------------------------------------------------------------------------------ | 603 //------------------------------------------------------------------------------ |
604 | 604 |
605 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 605 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
606 // RenderThread::current can be NULL when running some tests. | 606 // RenderThread::current can be NULL when running some tests. |
607 if (!blob_registry_.get() && RenderThread::current()) | 607 if (!blob_registry_.get() && RenderThread::current()) |
608 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); | 608 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); |
609 return blob_registry_.get(); | 609 return blob_registry_.get(); |
610 } | 610 } |
OLD | NEW |