| 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 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
| 10 #include "chrome/browser/browser_child_process_host.h" | 10 #include "content/browser/browser_child_process_host.h" |
| 11 | 11 |
| 12 namespace IPC { | 12 namespace IPC { |
| 13 class Message; | 13 class Message; |
| 14 } | 14 } |
| 15 | 15 |
| 16 class GpuProcessHost : public BrowserChildProcessHost, | 16 class GpuProcessHost : public BrowserChildProcessHost, |
| 17 public base::NonThreadSafe { | 17 public base::NonThreadSafe { |
| 18 public: | 18 public: |
| 19 | 19 |
| 20 // Create a GpuProcessHost with the given ID. The object can be found using | 20 // Create a GpuProcessHost with the given ID. The object can be found using |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 bool CanLaunchGpuProcess() const; | 45 bool CanLaunchGpuProcess() const; |
| 46 bool LaunchGpuProcess(); | 46 bool LaunchGpuProcess(); |
| 47 | 47 |
| 48 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 48 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
| 49 int host_id_; | 49 int host_id_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 51 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 54 #endif // CONTENT_BROWSER_GPU_PROCESS_HOST_H_ |
| OLD | NEW |