| 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); | 2138 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); |
| 2139 while (RenderWidgetHost* widget = widgets->GetNextHost()) { | 2139 while (RenderWidgetHost* widget = widgets->GetNextHost()) { |
| 2140 if (!widget->IsRenderView()) | 2140 if (!widget->IsRenderView()) |
| 2141 continue; | 2141 continue; |
| 2142 | 2142 |
| 2143 // Skip widgets in other processes. | 2143 // Skip widgets in other processes. |
| 2144 if (widget->GetProcess()->GetID() != GetID()) | 2144 if (widget->GetProcess()->GetID() != GetID()) |
| 2145 continue; | 2145 continue; |
| 2146 | 2146 |
| 2147 RenderViewHost* rvh = RenderViewHost::From(widget); | 2147 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 2148 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 2148 rvh->OnWebkitPreferencesChanged(); |
| 2149 } | 2149 } |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 #if defined(ENABLE_WEBRTC) | 2152 #if defined(ENABLE_WEBRTC) |
| 2153 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { | 2153 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { |
| 2154 BrowserThread::PostTask( | 2154 BrowserThread::PostTask( |
| 2155 BrowserThread::UI, | 2155 BrowserThread::UI, |
| 2156 FROM_HERE, | 2156 FROM_HERE, |
| 2157 base::Bind( | 2157 base::Bind( |
| 2158 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, | 2158 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 } | 2345 } |
| 2346 | 2346 |
| 2347 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( | 2347 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( |
| 2348 gfx::GpuMemoryBufferType type, | 2348 gfx::GpuMemoryBufferType type, |
| 2349 const gfx::GpuMemoryBufferId& id) { | 2349 const gfx::GpuMemoryBufferId& id) { |
| 2350 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2350 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2351 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); | 2351 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); |
| 2352 } | 2352 } |
| 2353 | 2353 |
| 2354 } // namespace content | 2354 } // namespace content |
| OLD | NEW |