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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 | 1277 |
1278 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { | 1278 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { |
1279 #if defined(IPC_MESSAGE_LOG_ENABLED) | 1279 #if defined(IPC_MESSAGE_LOG_ENABLED) |
1280 Send(new ChildProcessMsg_SetIPCLoggingEnabled( | 1280 Send(new ChildProcessMsg_SetIPCLoggingEnabled( |
1281 IPC::Logging::GetInstance()->Enabled())); | 1281 IPC::Logging::GetInstance()->Enabled())); |
1282 #endif | 1282 #endif |
1283 | 1283 |
1284 tracked_objects::ThreadData::Status status = | 1284 tracked_objects::ThreadData::Status status = |
1285 tracked_objects::ThreadData::status(); | 1285 tracked_objects::ThreadData::status(); |
1286 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1286 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1287 |
| 1288 Send(new ViewMsg_SetRendererProcessID(GetID())); |
1287 } | 1289 } |
1288 | 1290 |
1289 void RenderProcessHostImpl::OnChannelError() { | 1291 void RenderProcessHostImpl::OnChannelError() { |
1290 ProcessDied(true /* already_dead */); | 1292 ProcessDied(true /* already_dead */); |
1291 } | 1293 } |
1292 | 1294 |
1293 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { | 1295 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { |
1294 return browser_context_; | 1296 return browser_context_; |
1295 } | 1297 } |
1296 | 1298 |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 // Skip widgets in other processes. | 1797 // Skip widgets in other processes. |
1796 if (widget->GetProcess()->GetID() != GetID()) | 1798 if (widget->GetProcess()->GetID() != GetID()) |
1797 continue; | 1799 continue; |
1798 | 1800 |
1799 RenderViewHost* rvh = RenderViewHost::From(widget); | 1801 RenderViewHost* rvh = RenderViewHost::From(widget); |
1800 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1802 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1801 } | 1803 } |
1802 } | 1804 } |
1803 | 1805 |
1804 } // namespace content | 1806 } // namespace content |
OLD | NEW |