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

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

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated enne and jbauman's feedback. Created 7 years, 3 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 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 1272
1273 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { 1273 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) {
1274 #if defined(IPC_MESSAGE_LOG_ENABLED) 1274 #if defined(IPC_MESSAGE_LOG_ENABLED)
1275 Send(new ChildProcessMsg_SetIPCLoggingEnabled( 1275 Send(new ChildProcessMsg_SetIPCLoggingEnabled(
1276 IPC::Logging::GetInstance()->Enabled())); 1276 IPC::Logging::GetInstance()->Enabled()));
1277 #endif 1277 #endif
1278 1278
1279 tracked_objects::ThreadData::Status status = 1279 tracked_objects::ThreadData::Status status =
1280 tracked_objects::ThreadData::status(); 1280 tracked_objects::ThreadData::status();
1281 Send(new ChildProcessMsg_SetProfilerStatus(status)); 1281 Send(new ChildProcessMsg_SetProfilerStatus(status));
1282
1283 Send(new ViewMsg_SetRendererProcessID(GetID()));
1282 } 1284 }
1283 1285
1284 void RenderProcessHostImpl::OnChannelError() { 1286 void RenderProcessHostImpl::OnChannelError() {
1285 ProcessDied(true /* already_dead */); 1287 ProcessDied(true /* already_dead */);
1286 } 1288 }
1287 1289
1288 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { 1290 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const {
1289 return browser_context_; 1291 return browser_context_;
1290 } 1292 }
1291 1293
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 // Skip widgets in other processes. 1789 // Skip widgets in other processes.
1788 if (widget->GetProcess()->GetID() != GetID()) 1790 if (widget->GetProcess()->GetID() != GetID())
1789 continue; 1791 continue;
1790 1792
1791 RenderViewHost* rvh = RenderViewHost::From(widget); 1793 RenderViewHost* rvh = RenderViewHost::From(widget);
1792 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1794 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1793 } 1795 }
1794 } 1796 }
1795 1797
1796 } // namespace content 1798 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698