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

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

Issue 433733002: Revert 284592 "Cache the current WebPreferences on RenderViewHos..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2107/src/
Patch Set: Created 6 years, 4 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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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