Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ | 5 #ifndef CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ |
| 6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ | 6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "base/single_thread_task_runner.h" | |
|
xhwang
2016/04/20 21:09:27
This can be forward declared
sandersd (OOO until July 31)
2016/05/03 00:54:36
I have removed these changes from the CL.
| |
| 9 #include "content/child/process_control_impl.h" | 11 #include "content/child/process_control_impl.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 | 14 |
| 13 // Customization of ProcessControlImpl for the GPU process. | 15 // Customization of ProcessControlImpl for the GPU process. |
| 14 class GpuProcessControlImpl : public ProcessControlImpl { | 16 class GpuProcessControlImpl : public ProcessControlImpl { |
| 15 public: | 17 public: |
| 16 GpuProcessControlImpl(); | 18 GpuProcessControlImpl( |
| 19 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner); | |
|
xhwang
2016/04/20 21:09:27
gpu_main_task_runner just to be more explicit?
| |
| 17 ~GpuProcessControlImpl() override; | 20 ~GpuProcessControlImpl() override; |
| 18 | 21 |
| 19 // ProcessControlImpl: | 22 // ProcessControlImpl: |
| 20 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override; | 23 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override; |
| 21 | 24 |
| 22 private: | 25 private: |
| 26 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; | |
| 27 | |
| 23 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl); | 28 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl); |
| 24 }; | 29 }; |
| 25 | 30 |
| 26 } // namespace content | 31 } // namespace content |
| 27 | 32 |
| 28 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ | 33 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ |
| OLD | NEW |