| 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); | 532 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); |
| 533 channel_->AddFilter(new VideoCaptureHost()); | 533 channel_->AddFilter(new VideoCaptureHost()); |
| 534 #endif | 534 #endif |
| 535 channel_->AddFilter(new AppCacheDispatcherHost( | 535 channel_->AddFilter(new AppCacheDispatcherHost( |
| 536 static_cast<ChromeAppCacheService*>( | 536 static_cast<ChromeAppCacheService*>( |
| 537 BrowserContext::GetAppCacheService(browser_context)), | 537 BrowserContext::GetAppCacheService(browser_context)), |
| 538 GetID())); | 538 GetID())); |
| 539 channel_->AddFilter(new ClipboardMessageFilter()); | 539 channel_->AddFilter(new ClipboardMessageFilter()); |
| 540 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), | 540 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), |
| 541 static_cast<DOMStorageContextImpl*>( | 541 static_cast<DOMStorageContextImpl*>( |
| 542 BrowserContext::GetDOMStorageContext(browser_context)))); | 542 BrowserContext::GetDOMStorageContext(browser_context, GetID())))); |
| 543 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 543 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
| 544 static_cast<IndexedDBContextImpl*>( | 544 static_cast<IndexedDBContextImpl*>( |
| 545 BrowserContext::GetIndexedDBContext(browser_context)))); | 545 BrowserContext::GetIndexedDBContext(browser_context)))); |
| 546 channel_->AddFilter(GeolocationDispatcherHost::New( | 546 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 547 GetID(), browser_context->GetGeolocationPermissionContext())); | 547 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 548 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 548 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 549 channel_->AddFilter(gpu_message_filter_); | 549 channel_->AddFilter(gpu_message_filter_); |
| 550 #if defined(ENABLE_WEBRTC) | 550 #if defined(ENABLE_WEBRTC) |
| 551 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); | 551 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); |
| 552 #endif | 552 #endif |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 int32 route_id, | 1500 int32 route_id, |
| 1501 int32 gpu_process_host_id) { | 1501 int32 gpu_process_host_id) { |
| 1502 TRACE_EVENT0("renderer_host", | 1502 TRACE_EVENT0("renderer_host", |
| 1503 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1503 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1504 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1504 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1505 gpu_process_host_id, | 1505 gpu_process_host_id, |
| 1506 0); | 1506 0); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 } // namespace content | 1509 } // namespace content |
| OLD | NEW |