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_GPU_GPU_VIDEO_SERVICE_H_ | 5 #ifndef CHROME_GPU_GPU_VIDEO_SERVICE_H_ |
6 #define CHROME_GPU_GPU_VIDEO_SERVICE_H_ | 6 #define CHROME_GPU_GPU_VIDEO_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/scoped_ptr.h" | |
11 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
12 #include "base/singleton.h" | 11 #include "base/singleton.h" |
13 #include "chrome/gpu/gpu_video_decoder.h" | 12 #include "chrome/gpu/gpu_video_decoder.h" |
14 #include "ipc/ipc_channel.h" | 13 #include "ipc/ipc_channel.h" |
15 | 14 |
16 class GpuChannel; | 15 class GpuChannel; |
17 | 16 |
18 class GpuVideoService : public IPC::Channel::Listener, | 17 class GpuVideoService : public IPC::Channel::Listener, |
19 public Singleton<GpuVideoService> { | 18 public Singleton<GpuVideoService> { |
20 public: | 19 public: |
(...skipping 26 matching lines...) Expand all Loading... |
47 virtual bool UnintializeGpuVideoService(); | 46 virtual bool UnintializeGpuVideoService(); |
48 | 47 |
49 int32 GetNextAvailableDecoderID(); | 48 int32 GetNextAvailableDecoderID(); |
50 | 49 |
51 friend struct DefaultSingletonTraits<GpuVideoService>; | 50 friend struct DefaultSingletonTraits<GpuVideoService>; |
52 DISALLOW_COPY_AND_ASSIGN(GpuVideoService); | 51 DISALLOW_COPY_AND_ASSIGN(GpuVideoService); |
53 }; | 52 }; |
54 | 53 |
55 #endif // CHROME_GPU_GPU_VIDEO_SERVICE_H_ | 54 #endif // CHROME_GPU_GPU_VIDEO_SERVICE_H_ |
56 | 55 |
OLD | NEW |