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

Side by Side Diff: media/gpu/ipc/service/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: Fix several more bot-identified build issues Created 4 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_MEDIA_SERVICE_H_
6 #define CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ 6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ipc/ipc_listener.h" 12 #include "ipc/ipc_listener.h"
13 #include "ipc/ipc_sender.h" 13 #include "ipc/ipc_sender.h"
14 #include "media/video/video_decode_accelerator.h" 14 #include "media/video/video_decode_accelerator.h"
15 15
16 namespace gpu { 16 namespace gpu {
17 class GpuChannel; 17 class GpuChannel;
18 class GpuChannelManager; 18 class GpuChannelManager;
19 } 19 }
20 20
21 namespace content { 21 namespace media {
22 22
23 class MediaChannel; 23 class MediaChannel;
24 24
25 class MediaService { 25 class MediaService {
26 public: 26 public:
27 MediaService(gpu::GpuChannelManager* channel_manager); 27 MediaService(gpu::GpuChannelManager* channel_manager);
28 ~MediaService(); 28 ~MediaService();
29 29
30 void AddChannel(int32_t client_id); 30 void AddChannel(int32_t client_id);
31 void RemoveChannel(int32_t client_id); 31 void RemoveChannel(int32_t client_id);
32 void DestroyAllChannels(); 32 void DestroyAllChannels();
33 33
34 private: 34 private:
35 gpu::GpuChannelManager* const channel_manager_; 35 gpu::GpuChannelManager* const channel_manager_;
36 base::ScopedPtrHashMap<int32_t, std::unique_ptr<MediaChannel>> 36 base::ScopedPtrHashMap<int32_t, std::unique_ptr<MediaChannel>>
37 media_channels_; 37 media_channels_;
38 DISALLOW_COPY_AND_ASSIGN(MediaService); 38 DISALLOW_COPY_AND_ASSIGN(MediaService);
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace media
42 42
43 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_SERVICE_H_ 43 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698