| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 #include "content/common/sandbox_win.h" | 184 #include "content/common/sandbox_win.h" |
| 185 #include "sandbox/win/src/sandbox_policy.h" | 185 #include "sandbox/win/src/sandbox_policy.h" |
| 186 #include "ui/gfx/win/dpi.h" | 186 #include "ui/gfx/win/dpi.h" |
| 187 #endif | 187 #endif |
| 188 | 188 |
| 189 #if defined(OS_MACOSX) && !defined(OS_IOS) | 189 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 190 #include "content/browser/browser_io_surface_manager_mac.h" | 190 #include "content/browser/browser_io_surface_manager_mac.h" |
| 191 #endif | 191 #endif |
| 192 | 192 |
| 193 #if defined(USE_OZONE) | 193 #if defined(USE_OZONE) |
| 194 #include "ui/ozone/public/client_native_pixmap_factory.h" |
| 195 #include "ui/ozone/public/ozone_platform.h" |
| 194 #include "ui/ozone/public/ozone_switches.h" | 196 #include "ui/ozone/public/ozone_switches.h" |
| 195 #endif | 197 #endif |
| 196 | 198 |
| 197 #if defined(ENABLE_BROWSER_CDMS) | 199 #if defined(ENABLE_BROWSER_CDMS) |
| 198 #include "content/browser/media/cdm/browser_cdm_manager.h" | 200 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 199 #endif | 201 #endif |
| 200 | 202 |
| 201 #if defined(ENABLE_PLUGINS) | 203 #if defined(ENABLE_PLUGINS) |
| 202 #include "content/browser/plugin_service_impl.h" | 204 #include "content/browser/plugin_service_impl.h" |
| 203 #endif | 205 #endif |
| (...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 tracked_objects::ThreadData::Status status = | 1592 tracked_objects::ThreadData::Status status = |
| 1591 tracked_objects::ThreadData::status(); | 1593 tracked_objects::ThreadData::status(); |
| 1592 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1594 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1593 | 1595 |
| 1594 #if defined(OS_MACOSX) && !defined(OS_IOS) | 1596 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 1595 io_surface_manager_token_ = | 1597 io_surface_manager_token_ = |
| 1596 BrowserIOSurfaceManager::GetInstance()->GenerateChildProcessToken( | 1598 BrowserIOSurfaceManager::GetInstance()->GenerateChildProcessToken( |
| 1597 GetID()); | 1599 GetID()); |
| 1598 Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_)); | 1600 Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_)); |
| 1599 #endif | 1601 #endif |
| 1602 #if defined(USE_OZONE) |
| 1603 Send(new ChildProcessMsg_InitializeClientNativePixmapFactory( |
| 1604 base::FileDescriptor( |
| 1605 ui::OzonePlatform::GetInstance()->OpenClientNativePixmapDevice()))); |
| 1606 #endif |
| 1600 } | 1607 } |
| 1601 | 1608 |
| 1602 void RenderProcessHostImpl::OnChannelError() { | 1609 void RenderProcessHostImpl::OnChannelError() { |
| 1603 ProcessDied(true /* already_dead */, nullptr); | 1610 ProcessDied(true /* already_dead */, nullptr); |
| 1604 } | 1611 } |
| 1605 | 1612 |
| 1606 void RenderProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { | 1613 void RenderProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { |
| 1607 // Message de-serialization failed. We consider this a capital crime. Kill the | 1614 // Message de-serialization failed. We consider this a capital crime. Kill the |
| 1608 // renderer if we have one. | 1615 // renderer if we have one. |
| 1609 LOG(ERROR) << "bad message " << message.type() << " terminating renderer."; | 1616 LOG(ERROR) << "bad message " << message.type() << " terminating renderer."; |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 void RenderProcessHostImpl::GetAudioOutputControllers( | 2529 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2523 const GetAudioOutputControllersCallback& callback) const { | 2530 const GetAudioOutputControllersCallback& callback) const { |
| 2524 audio_renderer_host()->GetOutputControllers(callback); | 2531 audio_renderer_host()->GetOutputControllers(callback); |
| 2525 } | 2532 } |
| 2526 | 2533 |
| 2527 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2534 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2528 return bluetooth_dispatcher_host_.get(); | 2535 return bluetooth_dispatcher_host_.get(); |
| 2529 } | 2536 } |
| 2530 | 2537 |
| 2531 } // namespace content | 2538 } // namespace content |
| OLD | NEW |