| 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 "content/browser/gpu/browser_client_native_pixmap_manager_ozone.h" |
| 194 #include "ui/ozone/public/ozone_switches.h" | 195 #include "ui/ozone/public/ozone_switches.h" |
| 195 #endif | 196 #endif |
| 196 | 197 |
| 197 #if defined(ENABLE_BROWSER_CDMS) | 198 #if defined(ENABLE_BROWSER_CDMS) |
| 198 #include "content/browser/media/cdm/browser_cdm_manager.h" | 199 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 199 #endif | 200 #endif |
| 200 | 201 |
| 201 #if defined(ENABLE_PLUGINS) | 202 #if defined(ENABLE_PLUGINS) |
| 202 #include "content/browser/plugin_service_impl.h" | 203 #include "content/browser/plugin_service_impl.h" |
| 203 #endif | 204 #endif |
| (...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 tracked_objects::ThreadData::Status status = | 1585 tracked_objects::ThreadData::Status status = |
| 1585 tracked_objects::ThreadData::status(); | 1586 tracked_objects::ThreadData::status(); |
| 1586 Send(new ChildProcessMsg_SetProfilerStatus(status)); | 1587 Send(new ChildProcessMsg_SetProfilerStatus(status)); |
| 1587 | 1588 |
| 1588 #if defined(OS_MACOSX) && !defined(OS_IOS) | 1589 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 1589 io_surface_manager_token_ = | 1590 io_surface_manager_token_ = |
| 1590 BrowserIOSurfaceManager::GetInstance()->GenerateChildProcessToken( | 1591 BrowserIOSurfaceManager::GetInstance()->GenerateChildProcessToken( |
| 1591 GetID()); | 1592 GetID()); |
| 1592 Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_)); | 1593 Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_)); |
| 1593 #endif | 1594 #endif |
| 1595 #if defined(USE_OZONE) |
| 1596 BrowserClientNativePixmapManager::GetInstance()->SendVirtualDevice(this); |
| 1597 #endif |
| 1594 } | 1598 } |
| 1595 | 1599 |
| 1596 void RenderProcessHostImpl::OnChannelError() { | 1600 void RenderProcessHostImpl::OnChannelError() { |
| 1597 ProcessDied(true /* already_dead */, nullptr); | 1601 ProcessDied(true /* already_dead */, nullptr); |
| 1598 } | 1602 } |
| 1599 | 1603 |
| 1600 void RenderProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { | 1604 void RenderProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { |
| 1601 // Message de-serialization failed. We consider this a capital crime. Kill the | 1605 // Message de-serialization failed. We consider this a capital crime. Kill the |
| 1602 // renderer if we have one. | 1606 // renderer if we have one. |
| 1603 LOG(ERROR) << "bad message " << message.type() << " terminating renderer."; | 1607 LOG(ERROR) << "bad message " << message.type() << " terminating renderer."; |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2518 void RenderProcessHostImpl::GetAudioOutputControllers( | 2522 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2519 const GetAudioOutputControllersCallback& callback) const { | 2523 const GetAudioOutputControllersCallback& callback) const { |
| 2520 audio_renderer_host()->GetOutputControllers(callback); | 2524 audio_renderer_host()->GetOutputControllers(callback); |
| 2521 } | 2525 } |
| 2522 | 2526 |
| 2523 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2527 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2524 return bluetooth_dispatcher_host_.get(); | 2528 return bluetooth_dispatcher_host_.get(); |
| 2525 } | 2529 } |
| 2526 | 2530 |
| 2527 } // namespace content | 2531 } // namespace content |
| OLD | NEW |