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_SERVICE_FACTORY_H_ | 5 #ifndef CONTENT_GPU_GPU_SERVICE_FACTORY_H_ |
| 6 #define CONTENT_GPU_GPU_SERVICE_FACTORY_H_ | 6 #define CONTENT_GPU_GPU_SERVICE_FACTORY_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" | |
| 9 #include "content/child/service_factory.h" | 11 #include "content/child/service_factory.h" |
| 10 | 12 |
| 13 namespace media { | |
| 14 class MediaGpuChannelManager; | |
| 15 } | |
| 16 | |
| 11 namespace content { | 17 namespace content { |
| 12 | 18 |
| 13 // Customization of ServiceFactory for the GPU process. | 19 // Customization of ServiceFactory for the GPU process. |
| 14 class GpuServiceFactory : public ServiceFactory { | 20 class GpuServiceFactory : public ServiceFactory { |
| 15 public: | 21 public: |
| 16 GpuServiceFactory(); | 22 GpuServiceFactory(media::MediaGpuChannelManager* media_gpu_channel_manager); |
|
xhwang
2016/11/23 06:58:03
nit: explicit
sandersd (OOO until July 31)
2016/11/23 21:21:02
Done.
| |
| 17 ~GpuServiceFactory() override; | 23 ~GpuServiceFactory() override; |
| 18 | 24 |
| 19 // ServiceFactory overrides: | 25 // ServiceFactory overrides: |
| 20 void RegisterServices(ServiceMap* services) override; | 26 void RegisterServices(ServiceMap* services) override; |
| 21 | 27 |
| 22 private: | 28 private: |
| 29 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | |
|
xhwang
2016/11/23 06:58:03
please add comment. is this class single threaded
sandersd (OOO until July 31)
2016/11/23 21:21:02
Done.
| |
| 30 media::MediaGpuChannelManager* media_gpu_channel_manager_; | |
| 23 DISALLOW_COPY_AND_ASSIGN(GpuServiceFactory); | 31 DISALLOW_COPY_AND_ASSIGN(GpuServiceFactory); |
| 24 }; | 32 }; |
| 25 | 33 |
| 26 } // namespace content | 34 } // namespace content |
| 27 | 35 |
| 28 #endif // CONTENT_GPU_GPU_SERVICE_FACTORY_H_ | 36 #endif // CONTENT_GPU_GPU_SERVICE_FACTORY_H_ |
| OLD | NEW |