| 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 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); | 2120 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); |
| 2121 while (RenderWidgetHost* widget = widgets->GetNextHost()) { | 2121 while (RenderWidgetHost* widget = widgets->GetNextHost()) { |
| 2122 if (!widget->IsRenderView()) | 2122 if (!widget->IsRenderView()) |
| 2123 continue; | 2123 continue; |
| 2124 | 2124 |
| 2125 // Skip widgets in other processes. | 2125 // Skip widgets in other processes. |
| 2126 if (widget->GetProcess()->GetID() != GetID()) | 2126 if (widget->GetProcess()->GetID() != GetID()) |
| 2127 continue; | 2127 continue; |
| 2128 | 2128 |
| 2129 RenderViewHost* rvh = RenderViewHost::From(widget); | 2129 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 2130 rvh->OnWebkitPreferencesChanged(); | 2130 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 2131 } | 2131 } |
| 2132 } | 2132 } |
| 2133 | 2133 |
| 2134 #if defined(ENABLE_WEBRTC) | 2134 #if defined(ENABLE_WEBRTC) |
| 2135 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { | 2135 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { |
| 2136 BrowserThread::PostTask( | 2136 BrowserThread::PostTask( |
| 2137 BrowserThread::UI, | 2137 BrowserThread::UI, |
| 2138 FROM_HERE, | 2138 FROM_HERE, |
| 2139 base::Bind( | 2139 base::Bind( |
| 2140 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, | 2140 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2327 } | 2327 } |
| 2328 | 2328 |
| 2329 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( | 2329 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( |
| 2330 gfx::GpuMemoryBufferType type, | 2330 gfx::GpuMemoryBufferType type, |
| 2331 const gfx::GpuMemoryBufferId& id) { | 2331 const gfx::GpuMemoryBufferId& id) { |
| 2332 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2332 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2333 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); | 2333 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); |
| 2334 } | 2334 } |
| 2335 | 2335 |
| 2336 } // namespace content | 2336 } // namespace content |
| OLD | NEW |