Chromium Code Reviews| Index: content/common/gpu/media/media_service.h |
| diff --git a/content/common/gpu/media/media_service.h b/content/common/gpu/media/media_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1c886d172f6f37494cdbca6ab443405a0d9405b8 |
| --- /dev/null |
| +++ b/content/common/gpu/media/media_service.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ |
| +#define CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ |
| + |
| +#include "base/containers/scoped_ptr_hash_map.h" |
| +#include "base/macros.h" |
| +#include "ipc/ipc_listener.h" |
| +#include "ipc/ipc_sender.h" |
| +#include "media/video/video_decode_accelerator.h" |
| + |
| +namespace content { |
| + |
| +class GpuChannel; |
| +class GpuChannelManager; |
| +class MediaChannel; |
| + |
| +class MediaService { |
| + public: |
| + MediaService(GpuChannelManager* channel_manager); |
| + ~MediaService(); |
| + |
| + void AddChannel(int32_t client_id); |
|
dcheng
2016/03/03 23:46:42
#include <stdint.h>
Fady Samuel
2016/03/04 01:46:32
Done.
|
| + void RemoveChannel(int32_t client_id); |
| + void DestroyAllChannels(); |
| + |
| + private: |
| + GpuChannelManager* channel_manager_; |
| + base::ScopedPtrHashMap<int32_t, scoped_ptr<MediaChannel>> media_channels_; |
| + DISALLOW_COPY_AND_ASSIGN(MediaService); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ |