| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "content/renderer/media/midi_message_filter.h" | 74 #include "content/renderer/media/midi_message_filter.h" |
| 75 #include "content/renderer/media/peer_connection_tracker.h" | 75 #include "content/renderer/media/peer_connection_tracker.h" |
| 76 #include "content/renderer/media/video_capture_impl_manager.h" | 76 #include "content/renderer/media/video_capture_impl_manager.h" |
| 77 #include "content/renderer/media/video_capture_message_filter.h" | 77 #include "content/renderer/media/video_capture_message_filter.h" |
| 78 #include "content/renderer/media/webrtc_identity_service.h" | 78 #include "content/renderer/media/webrtc_identity_service.h" |
| 79 #include "content/renderer/memory_benchmarking_extension.h" | 79 #include "content/renderer/memory_benchmarking_extension.h" |
| 80 #include "content/renderer/p2p/socket_dispatcher.h" | 80 #include "content/renderer/p2p/socket_dispatcher.h" |
| 81 #include "content/renderer/render_process_impl.h" | 81 #include "content/renderer/render_process_impl.h" |
| 82 #include "content/renderer/render_view_impl.h" | 82 #include "content/renderer/render_view_impl.h" |
| 83 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 83 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 84 #include "content/renderer/service_worker/embedded_worker_context_message_filter
.h" |
| 84 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" | 85 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" |
| 85 #include "content/renderer/skia_benchmarking_extension.h" | 86 #include "content/renderer/skia_benchmarking_extension.h" |
| 86 #include "grit/content_resources.h" | 87 #include "grit/content_resources.h" |
| 87 #include "ipc/ipc_channel_handle.h" | 88 #include "ipc/ipc_channel_handle.h" |
| 88 #include "ipc/ipc_forwarding_message_filter.h" | 89 #include "ipc/ipc_forwarding_message_filter.h" |
| 89 #include "ipc/ipc_platform_file.h" | 90 #include "ipc/ipc_platform_file.h" |
| 90 #include "media/base/audio_hardware_config.h" | 91 #include "media/base/audio_hardware_config.h" |
| 91 #include "media/base/media.h" | 92 #include "media/base/media.h" |
| 92 #include "media/filters/gpu_video_accelerator_factories.h" | 93 #include "media/filters/gpu_video_accelerator_factories.h" |
| 93 #include "net/base/net_errors.h" | 94 #include "net/base/net_errors.h" |
| 94 #include "net/base/net_util.h" | 95 #include "net/base/net_util.h" |
| 95 #include "third_party/skia/include/core/SkGraphics.h" | |
| 96 #include "third_party/WebKit/public/platform/WebString.h" | 96 #include "third_party/WebKit/public/platform/WebString.h" |
| 97 #include "third_party/WebKit/public/web/WebColorName.h" | 97 #include "third_party/WebKit/public/web/WebColorName.h" |
| 98 #include "third_party/WebKit/public/web/WebDatabase.h" | 98 #include "third_party/WebKit/public/web/WebDatabase.h" |
| 99 #include "third_party/WebKit/public/web/WebDocument.h" | 99 #include "third_party/WebKit/public/web/WebDocument.h" |
| 100 #include "third_party/WebKit/public/web/WebFrame.h" | 100 #include "third_party/WebKit/public/web/WebFrame.h" |
| 101 #include "third_party/WebKit/public/web/WebImageCache.h" | 101 #include "third_party/WebKit/public/web/WebImageCache.h" |
| 102 #include "third_party/WebKit/public/web/WebKit.h" | 102 #include "third_party/WebKit/public/web/WebKit.h" |
| 103 #include "third_party/WebKit/public/web/WebNetworkStateNotifier.h" | 103 #include "third_party/WebKit/public/web/WebNetworkStateNotifier.h" |
| 104 #include "third_party/WebKit/public/web/WebPopupMenu.h" | 104 #include "third_party/WebKit/public/web/WebPopupMenu.h" |
| 105 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 105 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 106 #include "third_party/WebKit/public/web/WebScriptController.h" | 106 #include "third_party/WebKit/public/web/WebScriptController.h" |
| 107 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 107 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 108 #include "third_party/WebKit/public/web/WebView.h" | 108 #include "third_party/WebKit/public/web/WebView.h" |
| 109 #include "third_party/skia/include/core/SkGraphics.h" |
| 109 #include "ui/base/layout.h" | 110 #include "ui/base/layout.h" |
| 110 #include "ui/base/ui_base_switches.h" | 111 #include "ui/base/ui_base_switches.h" |
| 111 #include "v8/include/v8.h" | 112 #include "v8/include/v8.h" |
| 112 #include "webkit/child/worker_task_runner.h" | 113 #include "webkit/child/worker_task_runner.h" |
| 113 #include "webkit/renderer/compositor_bindings/web_external_bitmap_impl.h" | 114 #include "webkit/renderer/compositor_bindings/web_external_bitmap_impl.h" |
| 114 | 115 |
| 115 #if defined(OS_WIN) | 116 #if defined(OS_WIN) |
| 116 #include <windows.h> | 117 #include <windows.h> |
| 117 #include <objbase.h> | 118 #include <objbase.h> |
| 118 #else | 119 #else |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 AddFilter(audio_input_message_filter_.get()); | 369 AddFilter(audio_input_message_filter_.get()); |
| 369 | 370 |
| 370 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); | 371 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); |
| 371 AddFilter(audio_message_filter_.get()); | 372 AddFilter(audio_message_filter_.get()); |
| 372 | 373 |
| 373 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); | 374 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); |
| 374 AddFilter(midi_message_filter_.get()); | 375 AddFilter(midi_message_filter_.get()); |
| 375 | 376 |
| 376 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); | 377 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); |
| 377 | 378 |
| 379 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
| 380 |
| 378 GetContentClient()->renderer()->RenderThreadStarted(); | 381 GetContentClient()->renderer()->RenderThreadStarted(); |
| 379 | 382 |
| 380 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 383 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 381 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) | 384 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) |
| 382 RegisterExtension(GpuBenchmarkingExtension::Get()); | 385 RegisterExtension(GpuBenchmarkingExtension::Get()); |
| 383 | 386 |
| 384 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 387 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 385 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 388 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
| 386 RegisterExtension(MemoryBenchmarkingExtension::Get()); | 389 RegisterExtension(MemoryBenchmarkingExtension::Get()); |
| 387 #endif // USE_TCMALLOC | 390 #endif // USE_TCMALLOC |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 if (!gamepad_shared_memory_reader_) | 1354 if (!gamepad_shared_memory_reader_) |
| 1352 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); | 1355 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); |
| 1353 gamepad_shared_memory_reader_->SampleGamepads(*data); | 1356 gamepad_shared_memory_reader_->SampleGamepads(*data); |
| 1354 } | 1357 } |
| 1355 | 1358 |
| 1356 base::ProcessId RenderThreadImpl::renderer_process_id() const { | 1359 base::ProcessId RenderThreadImpl::renderer_process_id() const { |
| 1357 return renderer_process_id_; | 1360 return renderer_process_id_; |
| 1358 } | 1361 } |
| 1359 | 1362 |
| 1360 } // namespace content | 1363 } // namespace content |
| OLD | NEW |