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 CONTENT_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
6 #define CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
7 | 7 |
8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
9 #include "chrome/renderer/gpu_channel_host.h" | 9 #include "content/renderer/gpu_channel_host.h" |
10 #include "chrome/renderer/gpu_video_decoder_host.h" | 10 #include "content/renderer/gpu_video_decoder_host.h" |
11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "media/base/buffers.h" | 12 #include "media/base/buffers.h" |
13 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" |
14 | 14 |
15 // GpuVideoServiceHost lives on IO thread and is used to dispatch IPC messages | 15 // GpuVideoServiceHost lives on IO thread and is used to dispatch IPC messages |
16 // to GpuVideoDecoderHost objects. | 16 // to GpuVideoDecoderHost objects. |
17 class GpuVideoServiceHost : public IPC::ChannelProxy::MessageFilter { | 17 class GpuVideoServiceHost : public IPC::ChannelProxy::MessageFilter { |
18 public: | 18 public: |
19 GpuVideoServiceHost(); | 19 GpuVideoServiceHost(); |
20 | 20 |
(...skipping 22 matching lines...) Expand all Loading... |
43 | 43 |
44 // Router to send messages to a GpuVideoDecoderHost. | 44 // Router to send messages to a GpuVideoDecoderHost. |
45 MessageRouter router_; | 45 MessageRouter router_; |
46 | 46 |
47 // ID for the next GpuVideoDecoderHost. | 47 // ID for the next GpuVideoDecoderHost. |
48 int32 next_decoder_host_id_; | 48 int32 next_decoder_host_id_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); | 50 DISALLOW_COPY_AND_ASSIGN(GpuVideoServiceHost); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ | 53 #endif // CONTENT_RENDERER_GPU_VIDEO_SERVICE_HOST_H_ |
OLD | NEW |