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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 542 channel_->AddFilter(new AppCacheDispatcherHost( | 542 channel_->AddFilter(new AppCacheDispatcherHost( |
| 543 static_cast<ChromeAppCacheService*>( | 543 static_cast<ChromeAppCacheService*>( |
| 544 BrowserContext::GetAppCacheService(browser_context)), | 544 BrowserContext::GetAppCacheService(browser_context)), |
| 545 GetID())); | 545 GetID())); |
| 546 channel_->AddFilter(new ClipboardMessageFilter()); | 546 channel_->AddFilter(new ClipboardMessageFilter()); |
| 547 channel_->AddFilter( | 547 channel_->AddFilter( |
| 548 new DOMStorageMessageFilter( | 548 new DOMStorageMessageFilter( |
| 549 GetID(), | 549 GetID(), |
| 550 storage_partition_impl_->GetDOMStorageContext())); | 550 storage_partition_impl_->GetDOMStorageContext())); |
| 551 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 551 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
| 552 static_cast<IndexedDBContextImpl*>( | 552 storage_partition_impl_->GetIndexedDBContext())); |
|
Charlie Reis
2012/09/15 00:55:58
nit: wrong indent
awong
2012/09/15 01:19:37
Done.
| |
| 553 BrowserContext::GetIndexedDBContext(browser_context)))); | |
| 554 channel_->AddFilter(GeolocationDispatcherHost::New( | 553 channel_->AddFilter(GeolocationDispatcherHost::New( |
| 555 GetID(), browser_context->GetGeolocationPermissionContext())); | 554 GetID(), browser_context->GetGeolocationPermissionContext())); |
| 556 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 555 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 557 channel_->AddFilter(gpu_message_filter_); | 556 channel_->AddFilter(gpu_message_filter_); |
| 558 #if defined(ENABLE_WEBRTC) | 557 #if defined(ENABLE_WEBRTC) |
| 559 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); | 558 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); |
| 560 #endif | 559 #endif |
| 561 channel_->AddFilter( | 560 channel_->AddFilter( |
| 562 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 561 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
| 563 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : | 562 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1545 const gfx::Size& size, | 1544 const gfx::Size& size, |
| 1546 int32 gpu_process_host_id) { | 1545 int32 gpu_process_host_id) { |
| 1547 TRACE_EVENT0("renderer_host", | 1546 TRACE_EVENT0("renderer_host", |
| 1548 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1547 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1549 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1548 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1550 gpu_process_host_id, | 1549 gpu_process_host_id, |
| 1551 0); | 1550 0); |
| 1552 } | 1551 } |
| 1553 | 1552 |
| 1554 } // namespace content | 1553 } // namespace content |
| OLD | NEW |