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

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 android build. 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 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 2143 rvh->OnWebkitPreferencesChanged();
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
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
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.cc ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698