| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 #include "content/browser/mach_broker_mac.h" | 201 #include "content/browser/mach_broker_mac.h" |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 #if defined(OS_POSIX) | 204 #if defined(OS_POSIX) |
| 205 #include "content/browser/zygote_host/zygote_communication_linux.h" | 205 #include "content/browser/zygote_host/zygote_communication_linux.h" |
| 206 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 206 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
| 207 #include "content/public/browser/zygote_handle_linux.h" | 207 #include "content/public/browser/zygote_handle_linux.h" |
| 208 #endif // defined(OS_POSIX) | 208 #endif // defined(OS_POSIX) |
| 209 | 209 |
| 210 #if defined(USE_OZONE) | 210 #if defined(USE_OZONE) |
| 211 #include "ui/ozone/public/client_native_pixmap_factory.h" | |
| 212 #include "ui/ozone/public/ozone_platform.h" | |
| 213 #include "ui/ozone/public/ozone_switches.h" | 211 #include "ui/ozone/public/ozone_switches.h" |
| 214 #endif | 212 #endif |
| 215 | 213 |
| 216 #if defined(ENABLE_BROWSER_CDMS) | 214 #if defined(ENABLE_BROWSER_CDMS) |
| 217 #include "content/browser/media/cdm/browser_cdm_manager.h" | 215 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 218 #endif | 216 #endif |
| 219 | 217 |
| 220 #if defined(ENABLE_PLUGINS) | 218 #if defined(ENABLE_PLUGINS) |
| 221 #include "content/browser/plugin_service_impl.h" | 219 #include "content/browser/plugin_service_impl.h" |
| 222 #endif | 220 #endif |
| (...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 | 1810 |
| 1813 #if defined(IPC_MESSAGE_LOG_ENABLED) | 1811 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 1814 Send(new ChildProcessMsg_SetIPCLoggingEnabled( | 1812 Send(new ChildProcessMsg_SetIPCLoggingEnabled( |
| 1815 IPC::Logging::GetInstance()->Enabled())); | 1813 IPC::Logging::GetInstance()->Enabled())); |
| 1816 #endif | 1814 #endif |
| 1817 | 1815 |
| 1818 tracked_objects::ThreadData::Status status = | 1816 tracked_objects::ThreadData::Status status = |
| 1819 tracked_objects::ThreadData::status(); | 1817 tracked_objects::ThreadData::status(); |
| 1820 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1818 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1821 | 1819 |
| 1822 #if defined(USE_OZONE) | |
| 1823 Send(new ChildProcessMsg_InitializeClientNativePixmapFactory( | |
| 1824 base::FileDescriptor( | |
| 1825 ui::OzonePlatform::GetInstance()->OpenClientNativePixmapDevice()))); | |
| 1826 #endif | |
| 1827 | |
| 1828 // Inform AudioInputRendererHost about the new render process PID. | 1820 // Inform AudioInputRendererHost about the new render process PID. |
| 1829 // AudioInputRendererHost is reference counted, so its lifetime is | 1821 // AudioInputRendererHost is reference counted, so its lifetime is |
| 1830 // guaranteed during the lifetime of the closure. | 1822 // guaranteed during the lifetime of the closure. |
| 1831 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 1823 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
| 1832 base::Bind(&AudioInputRendererHost::set_renderer_pid, | 1824 base::Bind(&AudioInputRendererHost::set_renderer_pid, |
| 1833 audio_input_renderer_host_, peer_pid)); | 1825 audio_input_renderer_host_, peer_pid)); |
| 1834 } | 1826 } |
| 1835 | 1827 |
| 1836 void RenderProcessHostImpl::OnChannelError() { | 1828 void RenderProcessHostImpl::OnChannelError() { |
| 1837 ProcessDied(true /* already_dead */, nullptr); | 1829 ProcessDied(true /* already_dead */, nullptr); |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 | 2805 |
| 2814 // Skip widgets in other processes. | 2806 // Skip widgets in other processes. |
| 2815 if (rvh->GetProcess()->GetID() != GetID()) | 2807 if (rvh->GetProcess()->GetID() != GetID()) |
| 2816 continue; | 2808 continue; |
| 2817 | 2809 |
| 2818 rvh->OnWebkitPreferencesChanged(); | 2810 rvh->OnWebkitPreferencesChanged(); |
| 2819 } | 2811 } |
| 2820 } | 2812 } |
| 2821 | 2813 |
| 2822 } // namespace content | 2814 } // namespace content |
| OLD | NEW |