| 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 60 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 61 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 61 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 62 #include "content/browser/loader/resource_message_filter.h" | 62 #include "content/browser/loader/resource_message_filter.h" |
| 63 #include "content/browser/loader/resource_scheduler_filter.h" | 63 #include "content/browser/loader/resource_scheduler_filter.h" |
| 64 #include "content/browser/media/capture/audio_mirroring_manager.h" | 64 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 65 #include "content/browser/media/media_internals.h" | 65 #include "content/browser/media/media_internals.h" |
| 66 #include "content/browser/media/midi_host.h" | 66 #include "content/browser/media/midi_host.h" |
| 67 #include "content/browser/message_port_message_filter.h" | 67 #include "content/browser/message_port_message_filter.h" |
| 68 #include "content/browser/mime_registry_message_filter.h" | 68 #include "content/browser/mime_registry_message_filter.h" |
| 69 #include "content/browser/mojo/mojo_application_host.h" | 69 #include "content/browser/mojo/mojo_application_host.h" |
| 70 #include "content/browser/navigator_connect/navigator_connect_context.h" | |
| 71 #include "content/browser/navigator_connect/navigator_connect_dispatcher_host.h" | 70 #include "content/browser/navigator_connect/navigator_connect_dispatcher_host.h" |
| 72 #include "content/browser/notifications/notification_message_filter.h" | 71 #include "content/browser/notifications/notification_message_filter.h" |
| 73 #include "content/browser/permissions/permission_service_context.h" | 72 #include "content/browser/permissions/permission_service_context.h" |
| 74 #include "content/browser/permissions/permission_service_impl.h" | 73 #include "content/browser/permissions/permission_service_impl.h" |
| 75 #include "content/browser/profiler_message_filter.h" | 74 #include "content/browser/profiler_message_filter.h" |
| 76 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 75 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 77 #include "content/browser/quota_dispatcher_host.h" | 76 #include "content/browser/quota_dispatcher_host.h" |
| 78 #include "content/browser/renderer_host/clipboard_message_filter.h" | 77 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 79 #include "content/browser/renderer_host/database_message_filter.h" | 78 #include "content/browser/renderer_host/database_message_filter.h" |
| 80 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 79 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 108 #include "content/common/child_process_host_impl.h" | 107 #include "content/common/child_process_host_impl.h" |
| 109 #include "content/common/child_process_messages.h" | 108 #include "content/common/child_process_messages.h" |
| 110 #include "content/common/content_switches_internal.h" | 109 #include "content/common/content_switches_internal.h" |
| 111 #include "content/common/gpu/gpu_memory_buffer_factory.h" | 110 #include "content/common/gpu/gpu_memory_buffer_factory.h" |
| 112 #include "content/common/gpu/gpu_messages.h" | 111 #include "content/common/gpu/gpu_messages.h" |
| 113 #include "content/common/mojo/mojo_messages.h" | 112 #include "content/common/mojo/mojo_messages.h" |
| 114 #include "content/common/resource_messages.h" | 113 #include "content/common/resource_messages.h" |
| 115 #include "content/common/view_messages.h" | 114 #include "content/common/view_messages.h" |
| 116 #include "content/public/browser/browser_context.h" | 115 #include "content/public/browser/browser_context.h" |
| 117 #include "content/public/browser/content_browser_client.h" | 116 #include "content/public/browser/content_browser_client.h" |
| 117 #include "content/public/browser/navigator_connect_context.h" |
| 118 #include "content/public/browser/notification_service.h" | 118 #include "content/public/browser/notification_service.h" |
| 119 #include "content/public/browser/notification_types.h" | 119 #include "content/public/browser/notification_types.h" |
| 120 #include "content/public/browser/render_process_host_factory.h" | 120 #include "content/public/browser/render_process_host_factory.h" |
| 121 #include "content/public/browser/render_process_host_observer.h" | 121 #include "content/public/browser/render_process_host_observer.h" |
| 122 #include "content/public/browser/render_widget_host.h" | 122 #include "content/public/browser/render_widget_host.h" |
| 123 #include "content/public/browser/render_widget_host_iterator.h" | 123 #include "content/public/browser/render_widget_host_iterator.h" |
| 124 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 124 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
| 125 #include "content/public/browser/resource_context.h" | 125 #include "content/public/browser/resource_context.h" |
| 126 #include "content/public/browser/user_metrics.h" | 126 #include "content/public/browser/user_metrics.h" |
| 127 #include "content/public/browser/worker_service.h" | 127 #include "content/public/browser/worker_service.h" |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 AddFilter(new MemoryBenchmarkMessageFilter()); | 879 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 880 #endif | 880 #endif |
| 881 AddFilter(new PushMessagingMessageFilter( | 881 AddFilter(new PushMessagingMessageFilter( |
| 882 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 882 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 883 #if defined(OS_ANDROID) | 883 #if defined(OS_ANDROID) |
| 884 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 884 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 885 #endif | 885 #endif |
| 886 AddFilter(new GeofencingDispatcherHost( | 886 AddFilter(new GeofencingDispatcherHost( |
| 887 storage_partition_impl_->GetGeofencingManager())); | 887 storage_partition_impl_->GetGeofencingManager())); |
| 888 AddFilter(new NavigatorConnectDispatcherHost( | 888 AddFilter(new NavigatorConnectDispatcherHost( |
| 889 storage_partition_impl_->GetServiceWorkerContext(), | |
| 890 storage_partition_impl_->GetNavigatorConnectContext())); | 889 storage_partition_impl_->GetNavigatorConnectContext())); |
| 891 if (browser_command_line.HasSwitch( | 890 if (browser_command_line.HasSwitch( |
| 892 switches::kEnableExperimentalWebPlatformFeatures)) { | 891 switches::kEnableExperimentalWebPlatformFeatures)) { |
| 893 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host( | 892 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host( |
| 894 BluetoothDispatcherHost::Create()); | 893 BluetoothDispatcherHost::Create()); |
| 895 AddFilter(bluetooth_dispatcher_host.get()); | 894 AddFilter(bluetooth_dispatcher_host.get()); |
| 896 } | 895 } |
| 897 } | 896 } |
| 898 | 897 |
| 899 void RenderProcessHostImpl::RegisterMojoServices() { | 898 void RenderProcessHostImpl::RegisterMojoServices() { |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 | 2359 |
| 2361 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2360 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2362 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2363 DCHECK_GT(worker_ref_count_, 0); | 2362 DCHECK_GT(worker_ref_count_, 0); |
| 2364 --worker_ref_count_; | 2363 --worker_ref_count_; |
| 2365 if (worker_ref_count_ == 0) | 2364 if (worker_ref_count_ == 0) |
| 2366 Cleanup(); | 2365 Cleanup(); |
| 2367 } | 2366 } |
| 2368 | 2367 |
| 2369 } // namespace content | 2368 } // namespace content |
| OLD | NEW |