| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); | 472 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); |
| 473 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); | 473 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); |
| 474 #endif | 474 #endif |
| 475 channel_->AddFilter(new AppCacheDispatcherHost( | 475 channel_->AddFilter(new AppCacheDispatcherHost( |
| 476 static_cast<ChromeAppCacheService*>( | 476 static_cast<ChromeAppCacheService*>( |
| 477 BrowserContext::GetAppCacheService(browser_context)), | 477 BrowserContext::GetAppCacheService(browser_context)), |
| 478 GetID())); | 478 GetID())); |
| 479 channel_->AddFilter(new ClipboardMessageFilter()); | 479 channel_->AddFilter(new ClipboardMessageFilter()); |
| 480 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), | 480 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), |
| 481 static_cast<DOMStorageContextImpl*>( | 481 static_cast<DOMStorageContextImpl*>( |
| 482 BrowserContext::GetDOMStorageContext(browser_context)))); | 482 BrowserContext::GetDOMStorageContext(browser_context, GetID())))); |
| 483 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 483 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
| 484 static_cast<IndexedDBContextImpl*>( | 484 static_cast<IndexedDBContextImpl*>( |
| 485 BrowserContext::GetIndexedDBContext(browser_context)))); | 485 BrowserContext::GetIndexedDBContext(browser_context)))); |
| 486 channel_->AddFilter(GeolocationDispatcherHost::New( | 486 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 487 GetID(), browser_context->GetGeolocationPermissionContext())); | 487 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 488 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 488 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 489 channel_->AddFilter(gpu_message_filter_); | 489 channel_->AddFilter(gpu_message_filter_); |
| 490 #if defined(ENABLE_WEBRTC) | 490 #if defined(ENABLE_WEBRTC) |
| 491 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 491 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
| 492 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); | 492 resource_context, GetID(), BrowserMainLoop::GetAudioManager())); |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 int32 route_id, | 1400 int32 route_id, |
| 1401 int32 gpu_process_host_id) { | 1401 int32 gpu_process_host_id) { |
| 1402 TRACE_EVENT0("renderer_host", | 1402 TRACE_EVENT0("renderer_host", |
| 1403 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1403 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1404 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1404 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1405 gpu_process_host_id, | 1405 gpu_process_host_id, |
| 1406 0); | 1406 0); |
| 1407 } | 1407 } |
| 1408 | 1408 |
| 1409 } // namespace content | 1409 } // namespace content |
| OLD | NEW |