| 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 #include "base/win/scoped_com_initializer.h" | 119 #include "base/win/scoped_com_initializer.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 AddFilter(audio_input_message_filter_.get()); | 377 AddFilter(audio_input_message_filter_.get()); |
| 377 | 378 |
| 378 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); | 379 audio_message_filter_ = new AudioMessageFilter(GetIOMessageLoopProxy()); |
| 379 AddFilter(audio_message_filter_.get()); | 380 AddFilter(audio_message_filter_.get()); |
| 380 | 381 |
| 381 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); | 382 midi_message_filter_ = new MIDIMessageFilter(GetIOMessageLoopProxy()); |
| 382 AddFilter(midi_message_filter_.get()); | 383 AddFilter(midi_message_filter_.get()); |
| 383 | 384 |
| 384 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); | 385 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); |
| 385 | 386 |
| 387 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
| 388 |
| 386 GetContentClient()->renderer()->RenderThreadStarted(); | 389 GetContentClient()->renderer()->RenderThreadStarted(); |
| 387 | 390 |
| 388 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 391 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 389 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) | 392 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) |
| 390 RegisterExtension(GpuBenchmarkingExtension::Get()); | 393 RegisterExtension(GpuBenchmarkingExtension::Get()); |
| 391 | 394 |
| 392 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 395 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 393 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 396 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
| 394 RegisterExtension(MemoryBenchmarkingExtension::Get()); | 397 RegisterExtension(MemoryBenchmarkingExtension::Get()); |
| 395 #endif // USE_TCMALLOC | 398 #endif // USE_TCMALLOC |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 if (!gamepad_shared_memory_reader_) | 1362 if (!gamepad_shared_memory_reader_) |
| 1360 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); | 1363 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); |
| 1361 gamepad_shared_memory_reader_->SampleGamepads(*data); | 1364 gamepad_shared_memory_reader_->SampleGamepads(*data); |
| 1362 } | 1365 } |
| 1363 | 1366 |
| 1364 base::ProcessId RenderThreadImpl::renderer_process_id() const { | 1367 base::ProcessId RenderThreadImpl::renderer_process_id() const { |
| 1365 return renderer_process_id_; | 1368 return renderer_process_id_; |
| 1366 } | 1369 } |
| 1367 | 1370 |
| 1368 } // namespace content | 1371 } // namespace content |
| OLD | NEW |