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 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2133 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); | 2133 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); |
2134 while (RenderWidgetHost* widget = widgets->GetNextHost()) { | 2134 while (RenderWidgetHost* widget = widgets->GetNextHost()) { |
2135 if (!widget->IsRenderView()) | 2135 if (!widget->IsRenderView()) |
2136 continue; | 2136 continue; |
2137 | 2137 |
2138 // Skip widgets in other processes. | 2138 // Skip widgets in other processes. |
2139 if (widget->GetProcess()->GetID() != GetID()) | 2139 if (widget->GetProcess()->GetID() != GetID()) |
2140 continue; | 2140 continue; |
2141 | 2141 |
2142 RenderViewHost* rvh = RenderViewHost::From(widget); | 2142 RenderViewHost* rvh = RenderViewHost::From(widget); |
2143 rvh->OnWebkitPreferencesChanged(); | 2143 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
2144 } | 2144 } |
2145 } | 2145 } |
2146 | 2146 |
2147 #if defined(ENABLE_WEBRTC) | 2147 #if defined(ENABLE_WEBRTC) |
2148 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { | 2148 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { |
2149 BrowserThread::PostTask( | 2149 BrowserThread::PostTask( |
2150 BrowserThread::UI, | 2150 BrowserThread::UI, |
2151 FROM_HERE, | 2151 FROM_HERE, |
2152 base::Bind( | 2152 base::Bind( |
2153 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, | 2153 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2333 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
2334 IPC::Message* reply, | 2334 IPC::Message* reply, |
2335 const gfx::GpuMemoryBufferHandle& handle) { | 2335 const gfx::GpuMemoryBufferHandle& handle) { |
2336 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2336 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2337 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2337 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
2338 handle); | 2338 handle); |
2339 Send(reply); | 2339 Send(reply); |
2340 } | 2340 } |
2341 | 2341 |
2342 } // namespace content | 2342 } // namespace content |
OLD | NEW |