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