| 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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 | 1396 |
| 1397 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { | 1397 void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { |
| 1398 #if defined(IPC_MESSAGE_LOG_ENABLED) | 1398 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 1399 Send(new ChildProcessMsg_SetIPCLoggingEnabled( | 1399 Send(new ChildProcessMsg_SetIPCLoggingEnabled( |
| 1400 IPC::Logging::GetInstance()->Enabled())); | 1400 IPC::Logging::GetInstance()->Enabled())); |
| 1401 #endif | 1401 #endif |
| 1402 | 1402 |
| 1403 tracked_objects::ThreadData::Status status = | 1403 tracked_objects::ThreadData::Status status = |
| 1404 tracked_objects::ThreadData::status(); | 1404 tracked_objects::ThreadData::status(); |
| 1405 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1405 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1406 | |
| 1407 Send(new ViewMsg_SetRendererProcessID(GetID())); | |
| 1408 } | 1406 } |
| 1409 | 1407 |
| 1410 void RenderProcessHostImpl::OnChannelError() { | 1408 void RenderProcessHostImpl::OnChannelError() { |
| 1411 ProcessDied(true /* already_dead */); | 1409 ProcessDied(true /* already_dead */); |
| 1412 } | 1410 } |
| 1413 | 1411 |
| 1414 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { | 1412 BrowserContext* RenderProcessHostImpl::GetBrowserContext() const { |
| 1415 return browser_context_; | 1413 return browser_context_; |
| 1416 } | 1414 } |
| 1417 | 1415 |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2023 return; | 2021 return; |
| 2024 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2022 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
| 2025 } | 2023 } |
| 2026 | 2024 |
| 2027 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2025 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
| 2028 Send(new MediaStreamMsg_DisableAecDump()); | 2026 Send(new MediaStreamMsg_DisableAecDump()); |
| 2029 } | 2027 } |
| 2030 #endif | 2028 #endif |
| 2031 | 2029 |
| 2032 } // namespace content | 2030 } // namespace content |
| OLD | NEW |