OLD | NEW |
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/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #include "content/renderer/media/audio_renderer_mixer_manager.h" | 60 #include "content/renderer/media/audio_renderer_mixer_manager.h" |
61 #include "content/renderer/media/media_stream_center.h" | 61 #include "content/renderer/media/media_stream_center.h" |
62 #include "content/renderer/media/media_stream_dependency_factory.h" | 62 #include "content/renderer/media/media_stream_dependency_factory.h" |
63 #include "content/renderer/media/video_capture_impl_manager.h" | 63 #include "content/renderer/media/video_capture_impl_manager.h" |
64 #include "content/renderer/media/video_capture_message_filter.h" | 64 #include "content/renderer/media/video_capture_message_filter.h" |
65 #include "content/renderer/p2p/socket_dispatcher.h" | 65 #include "content/renderer/p2p/socket_dispatcher.h" |
66 #include "content/renderer/plugin_channel_host.h" | 66 #include "content/renderer/plugin_channel_host.h" |
67 #include "content/renderer/render_process_impl.h" | 67 #include "content/renderer/render_process_impl.h" |
68 #include "content/renderer/render_view_impl.h" | 68 #include "content/renderer/render_view_impl.h" |
69 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 69 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 70 #include "content/renderer/web_ui_extension.h" |
70 #include "grit/content_resources.h" | 71 #include "grit/content_resources.h" |
71 #include "ipc/ipc_channel_handle.h" | 72 #include "ipc/ipc_channel_handle.h" |
72 #include "ipc/ipc_forwarding_message_filter.h" | 73 #include "ipc/ipc_forwarding_message_filter.h" |
73 #include "ipc/ipc_platform_file.h" | 74 #include "ipc/ipc_platform_file.h" |
74 #include "media/base/media.h" | 75 #include "media/base/media.h" |
75 #include "net/base/net_errors.h" | 76 #include "net/base/net_errors.h" |
76 #include "net/base/net_util.h" | 77 #include "net/base/net_util.h" |
77 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 78 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" |
78 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor
t.h" | 79 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor
t.h" |
79 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 80 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 audio_input_message_filter_ = new AudioInputMessageFilter(); | 310 audio_input_message_filter_ = new AudioInputMessageFilter(); |
310 AddFilter(audio_input_message_filter_.get()); | 311 AddFilter(audio_input_message_filter_.get()); |
311 | 312 |
312 audio_message_filter_ = new AudioMessageFilter(); | 313 audio_message_filter_ = new AudioMessageFilter(); |
313 AddFilter(audio_message_filter_.get()); | 314 AddFilter(audio_message_filter_.get()); |
314 | 315 |
315 AddFilter(new IndexedDBMessageFilter); | 316 AddFilter(new IndexedDBMessageFilter); |
316 | 317 |
317 GetContentClient()->renderer()->RenderThreadStarted(); | 318 GetContentClient()->renderer()->RenderThreadStarted(); |
318 | 319 |
| 320 RegisterExtension(content::WebUIExtension::Get()); |
| 321 |
319 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 322 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
320 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) | 323 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) |
321 RegisterExtension(GpuBenchmarkingExtension::Get()); | 324 RegisterExtension(GpuBenchmarkingExtension::Get()); |
322 | 325 |
323 context_lost_cb_.reset(new GpuVDAContextLostCallback()); | 326 context_lost_cb_.reset(new GpuVDAContextLostCallback()); |
324 | 327 |
325 // Note that under Linux, the media library will normally already have | 328 // Note that under Linux, the media library will normally already have |
326 // been initialized by the Zygote before this instance became a Renderer. | 329 // been initialized by the Zygote before this instance became a Renderer. |
327 FilePath media_path; | 330 FilePath media_path; |
328 PathService::Get(DIR_MEDIA_LIBS, &media_path); | 331 PathService::Get(DIR_MEDIA_LIBS, &media_path); |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1114 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1112 DCHECK(message_loop() == MessageLoop::current()); | 1115 DCHECK(message_loop() == MessageLoop::current()); |
1113 if (!file_thread_.get()) { | 1116 if (!file_thread_.get()) { |
1114 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1117 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1115 file_thread_->Start(); | 1118 file_thread_->Start(); |
1116 } | 1119 } |
1117 return file_thread_->message_loop_proxy(); | 1120 return file_thread_->message_loop_proxy(); |
1118 } | 1121 } |
1119 | 1122 |
1120 } // namespace content | 1123 } // namespace content |
OLD | NEW |