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

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: 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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 1259
1260 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { 1260 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) {
1261 #if defined(IPC_MESSAGE_LOG_ENABLED) 1261 #if defined(IPC_MESSAGE_LOG_ENABLED)
1262 Send(new ChildProcessMsg_SetIPCLoggingEnabled( 1262 Send(new ChildProcessMsg_SetIPCLoggingEnabled(
1263 IPC::Logging::GetInstance()->Enabled())); 1263 IPC::Logging::GetInstance()->Enabled()));
1264 #endif 1264 #endif
1265 1265
1266 tracked_objects::ThreadData::Status status = 1266 tracked_objects::ThreadData::Status status =
1267 tracked_objects::ThreadData::status(); 1267 tracked_objects::ThreadData::status();
1268 Send(new ChildProcessMsg_SetProfilerStatus(status)); 1268 Send(new ChildProcessMsg_SetProfilerStatus(status));
1269
1270 Send(new ViewMsg_SetRendererProcessID(GetID()));
1269 } 1271 }
1270 1272
1271 void RenderProcessHostImpl::OnChannelError() { 1273 void RenderProcessHostImpl::OnChannelError() {
1272 ProcessDied(true /* already_dead */); 1274 ProcessDied(true /* already_dead */);
1273 } 1275 }
1274 1276
1275 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { 1277 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const {
1276 return browser_context_; 1278 return browser_context_;
1277 } 1279 }
1278 1280
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 // Skip widgets in other processes. 1775 // Skip widgets in other processes.
1774 if (widgets[i]->GetProcess()->GetID() != GetID()) 1776 if (widgets[i]->GetProcess()->GetID() != GetID())
1775 continue; 1777 continue;
1776 1778
1777 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1779 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1778 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1780 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1779 } 1781 }
1780 } 1782 }
1781 1783
1782 } // namespace content 1784 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698