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

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

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove base changes 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
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 "base/containers/scoped_ptr_hash_map.h"
9 #include "base/macros.h"
10 #include "ipc/ipc_listener.h"
11 #include "ipc/ipc_sender.h"
12 #include "media/video/video_decode_accelerator.h"
13
14 namespace content {
15
16 class GpuChannel;
17 class GpuChannelManager;
18 class MediaChannel;
19
20 class MediaService {
21 public:
22 MediaService(GpuChannelManager* channel_manager);
23 ~MediaService();
24
25 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.
26 void RemoveChannel(int32_t client_id);
27 void DestroyAllChannels();
28
29 private:
30 GpuChannelManager* channel_manager_;
31 base::ScopedPtrHashMap<int32_t, scoped_ptr<MediaChannel>> media_channels_;
32 DISALLOW_COPY_AND_ASSIGN(MediaService);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698