Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 373323003: Cache the current WebPreferences on RenderViewHostImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); 2162 RenderWidgetHostImpl::GetAllRenderWidgetHosts());
2163 while (RenderWidgetHost* widget = widgets->GetNextHost()) { 2163 while (RenderWidgetHost* widget = widgets->GetNextHost()) {
2164 if (!widget->IsRenderView()) 2164 if (!widget->IsRenderView())
2165 continue; 2165 continue;
2166 2166
2167 // Skip widgets in other processes. 2167 // Skip widgets in other processes.
2168 if (widget->GetProcess()->GetID() != GetID()) 2168 if (widget->GetProcess()->GetID() != GetID())
2169 continue; 2169 continue;
2170 2170
2171 RenderViewHost* rvh = RenderViewHost::From(widget); 2171 RenderViewHost* rvh = RenderViewHost::From(widget);
2172 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 2172 rvh->OnWebkitPreferencesChanged();
2173 } 2173 }
2174 } 2174 }
2175 2175
2176 #if defined(ENABLE_WEBRTC) 2176 #if defined(ENABLE_WEBRTC)
2177 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) { 2177 void RenderProcessHostImpl::OnRegisterAecDumpConsumer(int id) {
2178 BrowserThread::PostTask( 2178 BrowserThread::PostTask(
2179 BrowserThread::UI, 2179 BrowserThread::UI,
2180 FROM_HERE, 2180 FROM_HERE,
2181 base::Bind( 2181 base::Bind(
2182 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread, 2182 &RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2362 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2362 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2363 IPC::Message* reply, 2363 IPC::Message* reply,
2364 const gfx::GpuMemoryBufferHandle& handle) { 2364 const gfx::GpuMemoryBufferHandle& handle) {
2365 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2365 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2366 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2366 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2367 handle); 2367 handle);
2368 Send(reply); 2368 Send(reply);
2369 } 2369 }
2370 2370
2371 } // namespace content 2371 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698