| 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_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 5 #ifndef CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
| 6 #define CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 6 #define CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | |
| 9 | |
| 10 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 11 #include "chrome/common/gpu_video_common.h" | 9 #include "chrome/common/gpu_video_common.h" |
| 12 #include "chrome/renderer/gpu_channel_host.h" | 10 #include "chrome/renderer/gpu_channel_host.h" |
| 13 #include "chrome/renderer/gpu_video_decoder_host.h" | 11 #include "chrome/renderer/gpu_video_decoder_host.h" |
| 14 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
| 15 #include "media/base/buffers.h" | 13 #include "media/base/buffers.h" |
| 16 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
| 17 | 15 |
| 18 class GpuVideoServiceHost : public IPC::Channel::Listener, | 16 class GpuVideoServiceHost : public IPC::Channel::Listener, |
| 19 public Singleton<GpuVideoServiceHost> { | 17 public Singleton<GpuVideoServiceHost> { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 MessageRouter* router_; | 38 MessageRouter* router_; |
| 41 GpuVideoServiceInfoParam service_info_; | 39 GpuVideoServiceInfoParam service_info_; |
| 42 MessageLoop* message_loop_; // Message loop of render thread. | 40 MessageLoop* message_loop_; // Message loop of render thread. |
| 43 | 41 |
| 44 friend struct DefaultSingletonTraits<GpuVideoServiceHost>; | 42 friend struct DefaultSingletonTraits<GpuVideoServiceHost>; |
| 45 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); | 43 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); |
| 46 }; | 44 }; |
| 47 | 45 |
| 48 #endif // CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 46 #endif // CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
| 49 | 47 |
| OLD | NEW |