| 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 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "content/browser/child_process_security_policy_impl.h" | 46 #include "content/browser/child_process_security_policy_impl.h" |
| 47 #include "content/browser/device_orientation/message_filter.h" | 47 #include "content/browser/device_orientation/message_filter.h" |
| 48 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 48 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 49 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 49 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 50 #include "content/browser/download/mhtml_generation_manager.h" | 50 #include "content/browser/download/mhtml_generation_manager.h" |
| 51 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 51 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 52 #include "content/browser/fileapi/fileapi_message_filter.h" | 52 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 53 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 53 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 54 #include "content/browser/gpu/gpu_data_manager_impl.h" | 54 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 55 #include "content/browser/gpu/gpu_process_host.h" | 55 #include "content/browser/gpu/gpu_process_host.h" |
| 56 #include "content/browser/histogram_message_filter.h" |
| 56 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 57 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
| 57 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 58 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 58 #include "content/browser/mime_registry_message_filter.h" | 59 #include "content/browser/mime_registry_message_filter.h" |
| 59 #include "content/browser/plugin_service_impl.h" | 60 #include "content/browser/plugin_service_impl.h" |
| 60 #include "content/browser/profiler_message_filter.h" | 61 #include "content/browser/profiler_message_filter.h" |
| 61 #include "content/browser/renderer_host/clipboard_message_filter.h" | 62 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 62 #include "content/browser/renderer_host/database_message_filter.h" | 63 #include "content/browser/renderer_host/database_message_filter.h" |
| 63 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 64 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 64 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 65 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 65 #include "content/browser/renderer_host/gpu_message_filter.h" | 66 #include "content/browser/renderer_host/gpu_message_filter.h" |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 channel_->AddFilter(new TraceMessageFilter()); | 540 channel_->AddFilter(new TraceMessageFilter()); |
| 540 channel_->AddFilter(new ResolveProxyMsgHelper( | 541 channel_->AddFilter(new ResolveProxyMsgHelper( |
| 541 browser_context->GetRequestContextForRenderProcess(GetID()))); | 542 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 542 channel_->AddFilter(new QuotaDispatcherHost( | 543 channel_->AddFilter(new QuotaDispatcherHost( |
| 543 GetID(), | 544 GetID(), |
| 544 content::BrowserContext::GetQuotaManager(browser_context), | 545 content::BrowserContext::GetQuotaManager(browser_context), |
| 545 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 546 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 546 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); | 547 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); |
| 547 channel_->AddFilter(new content::ProfilerMessageFilter( | 548 channel_->AddFilter(new content::ProfilerMessageFilter( |
| 548 content::PROCESS_TYPE_RENDERER)); | 549 content::PROCESS_TYPE_RENDERER)); |
| 550 channel_->AddFilter(new content::HistogramMessageFilter( |
| 551 content::PROCESS_TYPE_RENDERER)); |
| 549 } | 552 } |
| 550 | 553 |
| 551 int RenderProcessHostImpl::GetNextRoutingID() { | 554 int RenderProcessHostImpl::GetNextRoutingID() { |
| 552 return widget_helper_->GetNextRoutingID(); | 555 return widget_helper_->GetNextRoutingID(); |
| 553 } | 556 } |
| 554 | 557 |
| 555 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 558 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
| 556 widget_helper_->CancelResourceRequests(render_widget_id); | 559 widget_helper_->CancelResourceRequests(render_widget_id); |
| 557 } | 560 } |
| 558 | 561 |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1376 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
| 1374 int32 surface_id, | 1377 int32 surface_id, |
| 1375 uint64 surface_handle, | 1378 uint64 surface_handle, |
| 1376 int32 route_id, | 1379 int32 route_id, |
| 1377 int32 gpu_process_host_id) { | 1380 int32 gpu_process_host_id) { |
| 1378 TRACE_EVENT0("renderer_host", | 1381 TRACE_EVENT0("renderer_host", |
| 1379 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1382 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1380 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1383 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
| 1381 gpu_process_host_id); | 1384 gpu_process_host_id); |
| 1382 } | 1385 } |
| OLD | NEW |