Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: content/common/gpu/media/media_service.h

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Squash and rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_
6 #define CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_
7
8 #include <stdint.h>
9
10 #include <memory>
11
12 #include "base/containers/scoped_ptr_hash_map.h"
13 #include "base/macros.h"
14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h"
16 #include "media/video/video_decode_accelerator.h"
17
18 namespace gpu {
19 class GpuChannel;
20 class GpuChannelManager;
21 }
22
23 namespace content {
24
25 class MediaChannel;
26
27 class MediaService {
28 public:
29 MediaService(gpu::GpuChannelManager* channel_manager);
30 ~MediaService();
31
32 void AddChannel(int32_t client_id);
33 void RemoveChannel(int32_t client_id);
34 void DestroyAllChannels();
35
36 private:
37 gpu::GpuChannelManager* const channel_manager_;
38 base::ScopedPtrHashMap<int32_t, std::unique_ptr<MediaChannel>>
39 media_channels_;
40 DISALLOW_COPY_AND_ASSIGN(MediaService);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698