| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/gpu_process_host.h" | 5 #include "chrome/browser/gpu_process_host.h" |
| 6 | 6 |
| 7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/thread.h" | 9 #include "base/thread.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
| 12 #include "chrome/browser/gpu_process_host_ui_shim.h" | 12 #include "chrome/browser/gpu_process_host_ui_shim.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" |
| 14 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 14 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 15 #include "chrome/common/child_process_logging.h" | 15 #include "chrome/common/child_process_logging.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/common/gpu_messages.h" | 17 #include "chrome/common/gpu_messages.h" |
| 18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
| 19 #include "ipc/ipc_channel_handle.h" |
| 19 #include "ipc/ipc_switches.h" | 20 #include "ipc/ipc_switches.h" |
| 20 | 21 |
| 21 #if defined(OS_LINUX) | 22 #if defined(OS_LINUX) |
| 22 #include "gfx/gtk_native_view_id_manager.h" | 23 #include "gfx/gtk_native_view_id_manager.h" |
| 23 #endif | 24 #endif |
| 24 | 25 |
| 25 namespace { | 26 namespace { |
| 26 | 27 |
| 27 // Tasks used by this file | 28 // Tasks used by this file |
| 28 class RouteOnUIThreadTask : public Task { | 29 class RouteOnUIThreadTask : public Task { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 249 |
| 249 URLRequestContext* GpuProcessHost::GetRequestContext( | 250 URLRequestContext* GpuProcessHost::GetRequestContext( |
| 250 uint32 request_id, | 251 uint32 request_id, |
| 251 const ViewHostMsg_Resource_Request& request_data) { | 252 const ViewHostMsg_Resource_Request& request_data) { |
| 252 return NULL; | 253 return NULL; |
| 253 } | 254 } |
| 254 | 255 |
| 255 bool GpuProcessHost::CanShutdown() { | 256 bool GpuProcessHost::CanShutdown() { |
| 256 return true; | 257 return true; |
| 257 } | 258 } |
| OLD | NEW |