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

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

Issue 1767673002: Revert of Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/common/gpu/media/media_messages.cc ('k') | content/common/gpu/media/media_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/containers/scoped_ptr_hash_map.h"
11 #include "base/macros.h"
12 #include "ipc/ipc_listener.h"
13 #include "ipc/ipc_sender.h"
14 #include "media/video/video_decode_accelerator.h"
15
16 namespace content {
17
18 class GpuChannel;
19 class GpuChannelManager;
20 class MediaChannel;
21
22 class MediaService {
23 public:
24 MediaService(GpuChannelManager* channel_manager);
25 ~MediaService();
26
27 void AddChannel(int32_t client_id);
28 void RemoveChannel(int32_t client_id);
29 void DestroyAllChannels();
30
31 private:
32 GpuChannelManager* const channel_manager_;
33 base::ScopedPtrHashMap<int32_t, scoped_ptr<MediaChannel>> media_channels_;
34 DISALLOW_COPY_AND_ASSIGN(MediaService);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/media_messages.cc ('k') | content/common/gpu/media/media_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698