| 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 <utility> | 10 #include <utility> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "content/child/appcache/appcache_dispatcher.h" | 52 #include "content/child/appcache/appcache_dispatcher.h" |
| 53 #include "content/child/appcache/appcache_frontend_impl.h" | 53 #include "content/child/appcache/appcache_frontend_impl.h" |
| 54 #include "content/child/blob_storage/blob_message_filter.h" | 54 #include "content/child/blob_storage/blob_message_filter.h" |
| 55 #include "content/child/child_gpu_memory_buffer_manager.h" | 55 #include "content/child/child_gpu_memory_buffer_manager.h" |
| 56 #include "content/child/child_histogram_message_filter.h" | 56 #include "content/child/child_histogram_message_filter.h" |
| 57 #include "content/child/child_resource_message_filter.h" | 57 #include "content/child/child_resource_message_filter.h" |
| 58 #include "content/child/child_shared_bitmap_manager.h" | 58 #include "content/child/child_shared_bitmap_manager.h" |
| 59 #include "content/child/content_child_helpers.h" | 59 #include "content/child/content_child_helpers.h" |
| 60 #include "content/child/db_message_filter.h" | 60 #include "content/child/db_message_filter.h" |
| 61 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 61 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
| 62 #include "content/child/indexed_db/indexed_db_message_filter.h" | |
| 63 #include "content/child/memory/child_memory_coordinator_impl.h" | 62 #include "content/child/memory/child_memory_coordinator_impl.h" |
| 64 #include "content/child/resource_dispatcher.h" | 63 #include "content/child/resource_dispatcher.h" |
| 65 #include "content/child/resource_scheduling_filter.h" | 64 #include "content/child/resource_scheduling_filter.h" |
| 66 #include "content/child/runtime_features.h" | 65 #include "content/child/runtime_features.h" |
| 67 #include "content/child/thread_safe_sender.h" | 66 #include "content/child/thread_safe_sender.h" |
| 68 #include "content/child/web_database_observer_impl.h" | 67 #include "content/child/web_database_observer_impl.h" |
| 69 #include "content/child/worker_thread_registry.h" | 68 #include "content/child/worker_thread_registry.h" |
| 70 #include "content/common/child_process_messages.h" | 69 #include "content/common/child_process_messages.h" |
| 71 #include "content/common/content_constants_internal.h" | 70 #include "content/common/content_constants_internal.h" |
| 72 #include "content/common/dom_storage/dom_storage_messages.h" | 71 #include "content/common/dom_storage/dom_storage_messages.h" |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 | 712 |
| 714 audio_input_message_filter_ = new AudioInputMessageFilter(GetIOTaskRunner()); | 713 audio_input_message_filter_ = new AudioInputMessageFilter(GetIOTaskRunner()); |
| 715 AddFilter(audio_input_message_filter_.get()); | 714 AddFilter(audio_input_message_filter_.get()); |
| 716 | 715 |
| 717 audio_message_filter_ = new AudioMessageFilter(GetIOTaskRunner()); | 716 audio_message_filter_ = new AudioMessageFilter(GetIOTaskRunner()); |
| 718 AddFilter(audio_message_filter_.get()); | 717 AddFilter(audio_message_filter_.get()); |
| 719 | 718 |
| 720 midi_message_filter_ = new MidiMessageFilter(GetIOTaskRunner()); | 719 midi_message_filter_ = new MidiMessageFilter(GetIOTaskRunner()); |
| 721 AddFilter(midi_message_filter_.get()); | 720 AddFilter(midi_message_filter_.get()); |
| 722 | 721 |
| 723 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); | |
| 724 | |
| 725 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter()); | 722 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter()); |
| 726 | 723 |
| 727 AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter()); | 724 AddFilter((new ServiceWorkerContextMessageFilter())->GetFilter()); |
| 728 | 725 |
| 729 #if defined(USE_AURA) | 726 #if defined(USE_AURA) |
| 730 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 727 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 731 switches::kUseMusInRenderer)) { | 728 switches::kUseMusInRenderer)) { |
| 732 CreateRenderWidgetWindowTreeClientFactory(GetServiceManagerConnection()); | 729 CreateRenderWidgetWindowTreeClientFactory(GetServiceManagerConnection()); |
| 733 } | 730 } |
| 734 #endif | 731 #endif |
| (...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2476 } | 2473 } |
| 2477 } | 2474 } |
| 2478 | 2475 |
| 2479 void RenderThreadImpl::OnRendererInterfaceRequest( | 2476 void RenderThreadImpl::OnRendererInterfaceRequest( |
| 2480 mojom::RendererAssociatedRequest request) { | 2477 mojom::RendererAssociatedRequest request) { |
| 2481 DCHECK(!renderer_binding_.is_bound()); | 2478 DCHECK(!renderer_binding_.is_bound()); |
| 2482 renderer_binding_.Bind(std::move(request)); | 2479 renderer_binding_.Bind(std::move(request)); |
| 2483 } | 2480 } |
| 2484 | 2481 |
| 2485 } // namespace content | 2482 } // namespace content |
| OLD | NEW |