Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 #include "content/browser/device_orientation/orientation_message_filter.h" | 48 #include "content/browser/device_orientation/orientation_message_filter.h" |
| 49 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 49 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 50 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 50 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 51 #include "content/browser/download/mhtml_generation_manager.h" | 51 #include "content/browser/download/mhtml_generation_manager.h" |
| 52 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 52 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 53 #include "content/browser/fileapi/fileapi_message_filter.h" | 53 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 55 #include "content/browser/gpu/gpu_data_manager_impl.h" | 55 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 56 #include "content/browser/gpu/gpu_process_host.h" | 56 #include "content/browser/gpu/gpu_process_host.h" |
| 57 #include "content/browser/histogram_message_filter.h" | 57 #include "content/browser/histogram_message_filter.h" |
| 58 #include "content/browser/hyphenator/hyphenator_message_filter.h" | |
| 58 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 59 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
| 59 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 60 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 60 #include "content/browser/mime_registry_message_filter.h" | 61 #include "content/browser/mime_registry_message_filter.h" |
| 61 #include "content/browser/plugin_service_impl.h" | 62 #include "content/browser/plugin_service_impl.h" |
| 62 #include "content/browser/profiler_message_filter.h" | 63 #include "content/browser/profiler_message_filter.h" |
| 63 #include "content/browser/renderer_host/clipboard_message_filter.h" | 64 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 64 #include "content/browser/renderer_host/database_message_filter.h" | 65 #include "content/browser/renderer_host/database_message_filter.h" |
| 65 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 66 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 66 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 67 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 67 #include "content/browser/renderer_host/gpu_message_filter.h" | 68 #include "content/browser/renderer_host/gpu_message_filter.h" |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 602 channel_->AddFilter(new TraceMessageFilter()); | 603 channel_->AddFilter(new TraceMessageFilter()); |
| 603 channel_->AddFilter(new ResolveProxyMsgHelper( | 604 channel_->AddFilter(new ResolveProxyMsgHelper( |
| 604 browser_context->GetRequestContextForRenderProcess(GetID()))); | 605 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 605 channel_->AddFilter(new QuotaDispatcherHost( | 606 channel_->AddFilter(new QuotaDispatcherHost( |
| 606 GetID(), | 607 GetID(), |
| 607 storage_partition_impl_->GetQuotaManager(), | 608 storage_partition_impl_->GetQuotaManager(), |
| 608 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 609 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 609 channel_->AddFilter(new GamepadBrowserMessageFilter(this)); | 610 channel_->AddFilter(new GamepadBrowserMessageFilter(this)); |
| 610 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 611 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 611 channel_->AddFilter(new content::HistogramMessageFilter()); | 612 channel_->AddFilter(new content::HistogramMessageFilter()); |
| 613 channel_->AddFilter(new content::HyphenatorMessageFilter(this)); | |
|
jam
2012/08/23 21:34:29
nit: content:: unnecessary (can also remove in the
Hironori Bono
2012/08/27 06:57:28
Done. Thanks for noticing these redundant namespac
| |
| 612 } | 614 } |
| 613 | 615 |
| 614 int RenderProcessHostImpl::GetNextRoutingID() { | 616 int RenderProcessHostImpl::GetNextRoutingID() { |
| 615 return widget_helper_->GetNextRoutingID(); | 617 return widget_helper_->GetNextRoutingID(); |
| 616 } | 618 } |
| 617 | 619 |
| 618 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 620 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
| 619 widget_helper_->CancelResourceRequests(render_widget_id); | 621 widget_helper_->CancelResourceRequests(render_widget_id); |
| 620 } | 622 } |
| 621 | 623 |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1518 int32 route_id, | 1520 int32 route_id, |
| 1519 int32 gpu_process_host_id) { | 1521 int32 gpu_process_host_id) { |
| 1520 TRACE_EVENT0("renderer_host", | 1522 TRACE_EVENT0("renderer_host", |
| 1521 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1523 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1522 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1524 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1523 gpu_process_host_id, | 1525 gpu_process_host_id, |
| 1524 0); | 1526 0); |
| 1525 } | 1527 } |
| 1526 | 1528 |
| 1527 } // namespace content | 1529 } // namespace content |
| OLD | NEW |