OLD | NEW |
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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 | 1285 |
1286 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { | 1286 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { |
1287 #if defined(IPC_MESSAGE_LOG_ENABLED) | 1287 #if defined(IPC_MESSAGE_LOG_ENABLED) |
1288 Send(new ChildProcessMsg_SetIPCLoggingEnabled( | 1288 Send(new ChildProcessMsg_SetIPCLoggingEnabled( |
1289 IPC::Logging::GetInstance()->Enabled())); | 1289 IPC::Logging::GetInstance()->Enabled())); |
1290 #endif | 1290 #endif |
1291 | 1291 |
1292 tracked_objects::ThreadData::Status status = | 1292 tracked_objects::ThreadData::Status status = |
1293 tracked_objects::ThreadData::status(); | 1293 tracked_objects::ThreadData::status(); |
1294 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1294 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1295 |
| 1296 Send(new ViewMsg_SetRendererProcessID(GetID())); |
1295 } | 1297 } |
1296 | 1298 |
1297 void RenderProcessHostImpl::OnChannelError() { | 1299 void RenderProcessHostImpl::OnChannelError() { |
1298 ProcessDied(true /* already_dead */); | 1300 ProcessDied(true /* already_dead */); |
1299 } | 1301 } |
1300 | 1302 |
1301 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { | 1303 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { |
1302 return browser_context_; | 1304 return browser_context_; |
1303 } | 1305 } |
1304 | 1306 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 // Skip widgets in other processes. | 1801 // Skip widgets in other processes. |
1800 if (widget->GetProcess()->GetID() != GetID()) | 1802 if (widget->GetProcess()->GetID() != GetID()) |
1801 continue; | 1803 continue; |
1802 | 1804 |
1803 RenderViewHost* rvh = RenderViewHost::From(widget); | 1805 RenderViewHost* rvh = RenderViewHost::From(widget); |
1804 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1806 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1805 } | 1807 } |
1806 } | 1808 } |
1807 | 1809 |
1808 } // namespace content | 1810 } // namespace content |
OLD | NEW |