| 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 static_cast<ChromeAppCacheService*>( | 541 static_cast<ChromeAppCacheService*>( |
| 542 BrowserContext::GetAppCacheService(browser_context)), | 542 BrowserContext::GetAppCacheService(browser_context)), |
| 543 GetID())); | 543 GetID())); |
| 544 channel_->AddFilter(new ClipboardMessageFilter()); | 544 channel_->AddFilter(new ClipboardMessageFilter()); |
| 545 channel_->AddFilter( | 545 channel_->AddFilter( |
| 546 new DOMStorageMessageFilter( | 546 new DOMStorageMessageFilter( |
| 547 GetID(), | 547 GetID(), |
| 548 storage_partition_impl_->GetDOMStorageContext())); | 548 storage_partition_impl_->GetDOMStorageContext())); |
| 549 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 549 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
| 550 static_cast<IndexedDBContextImpl*>( | 550 static_cast<IndexedDBContextImpl*>( |
| 551 BrowserContext::GetIndexedDBContext(browser_context)))); | 551 storage_partition_impl_->GetIndexedDBContext()))); |
| 552 channel_->AddFilter(GeolocationDispatcherHost::New( | 552 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 553 GetID(), browser_context->GetGeolocationPermissionContext())); | 553 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 554 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 554 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 555 channel_->AddFilter(gpu_message_filter_); | 555 channel_->AddFilter(gpu_message_filter_); |
| 556 #if defined(ENABLE_WEBRTC) | 556 #if defined(ENABLE_WEBRTC) |
| 557 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); | 557 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); |
| 558 #endif | 558 #endif |
| 559 channel_->AddFilter( | 559 channel_->AddFilter( |
| 560 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 560 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
| 561 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : | 561 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 int32 route_id, | 1532 int32 route_id, |
| 1533 int32 gpu_process_host_id) { | 1533 int32 gpu_process_host_id) { |
| 1534 TRACE_EVENT0("renderer_host", | 1534 TRACE_EVENT0("renderer_host", |
| 1535 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1535 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1536 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1536 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1537 gpu_process_host_id, | 1537 gpu_process_host_id, |
| 1538 0); | 1538 0); |
| 1539 } | 1539 } |
| 1540 | 1540 |
| 1541 } // namespace content | 1541 } // namespace content |
| OLD | NEW |